Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
SaQC
Manage
Activity
Members
Labels
Plan
Issues
36
Issue boards
Milestones
Wiki
Code
Merge requests
8
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Admin message
UFZ GitLab and Mattermost will be
OFFLINE
on
March 27
from
8:00pm
to
10pm
due to a system migration!
Show more breadcrumbs
rdm-software
SaQC
Commits
d710cb91
Commit
d710cb91
authored
2 years ago
by
David Schäfer
Browse files
Options
Downloads
Patches
Plain Diff
Change the default limit value of the interpolation routines
parent
5e10c7ff
Loading
Loading
3 merge requests
!685
Release 2.4
,
!684
Release 2.4
,
!598
Change the default limit value of the interpolation routines
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
CHANGELOG.md
+1
-0
1 addition, 0 deletions
CHANGELOG.md
saqc/funcs/interpolation.py
+6
-8
6 additions, 8 deletions
saqc/funcs/interpolation.py
saqc/lib/ts_operators.py
+1
-1
1 addition, 1 deletion
saqc/lib/ts_operators.py
tests/funcs/test_resampling.py
+1
-1
1 addition, 1 deletion
tests/funcs/test_resampling.py
with
9 additions
and
10 deletions
CHANGELOG.md
+
1
−
0
View file @
d710cb91
...
@@ -15,6 +15,7 @@ SPDX-License-Identifier: GPL-3.0-or-later
...
@@ -15,6 +15,7 @@ SPDX-License-Identifier: GPL-3.0-or-later
-
Remove all flag value restrictions from the default flagging scheme
`FloatTranslator`
-
Remove all flag value restrictions from the default flagging scheme
`FloatTranslator`
-
Renamed
`TranslationScheme.forward`
to
`TranslationScheme.toInternal`
-
Renamed
`TranslationScheme.forward`
to
`TranslationScheme.toInternal`
-
Renamed
`TranslationScheme.backward`
to
`TranslationScheme.toExternal`
-
Renamed
`TranslationScheme.backward`
to
`TranslationScheme.toExternal`
-
Changed Default value of the parameter
`limit`
for
`SaQC.interpolateIndex`
and
`SaQC.interpolateInvalid`
to
``None`
### Removed
### Removed
### Fixed
### Fixed
...
...
This diff is collapsed.
Click to expand it.
saqc/funcs/interpolation.py
+
6
−
8
View file @
d710cb91
...
@@ -143,7 +143,7 @@ class InterpolationMixin:
...
@@ -143,7 +143,7 @@ class InterpolationMixin:
field
:
str
,
field
:
str
,
method
:
_SUPPORTED_METHODS
,
method
:
_SUPPORTED_METHODS
,
order
:
int
=
2
,
order
:
int
=
2
,
limit
:
int
=
2
,
limit
:
int
|
None
=
None
,
downgrade
:
bool
=
False
,
downgrade
:
bool
=
False
,
flag
:
float
=
UNFLAGGED
,
flag
:
float
=
UNFLAGGED
,
**
kwargs
,
**
kwargs
,
...
@@ -167,9 +167,8 @@ class InterpolationMixin:
...
@@ -167,9 +167,8 @@ class InterpolationMixin:
If there your selected interpolation method can be performed at different
'
orders
'
- here you pass the desired
If there your selected interpolation method can be performed at different
'
orders
'
- here you pass the desired
order.
order.
limit : int, default 2
limit : int, optional
Maximum number of consecutive
'
nan
'
values allowed for a gap to be interpolated. This really restricts the
Maximum number of consecutive `nan` values to fill. Must be greater than 0.
interpolation to chunks, containing not more than `limit` successive nan entries.
flag : float or None, default UNFLAGGED
flag : float or None, default UNFLAGGED
Flag that is set for interpolated values. If ``None``, no flags are set at all.
Flag that is set for interpolated values. If ``None``, no flags are set at all.
...
@@ -210,7 +209,7 @@ class InterpolationMixin:
...
@@ -210,7 +209,7 @@ class InterpolationMixin:
freq
:
str
,
freq
:
str
,
method
:
_SUPPORTED_METHODS
,
method
:
_SUPPORTED_METHODS
,
order
:
int
=
2
,
order
:
int
=
2
,
limit
:
int
=
2
,
limit
:
int
|
None
=
None
,
downgrade
:
bool
=
False
,
downgrade
:
bool
=
False
,
**
kwargs
,
**
kwargs
,
)
->
"
SaQC
"
:
)
->
"
SaQC
"
:
...
@@ -237,9 +236,8 @@ class InterpolationMixin:
...
@@ -237,9 +236,8 @@ class InterpolationMixin:
If there your selected interpolation method can be performed at different
'
orders
'
- here you pass the desired
If there your selected interpolation method can be performed at different
'
orders
'
- here you pass the desired
order.
order.
limit : int, default 2
limit : int, optional
Maximum number of consecutive
'
nan
'
values allowed for a gap to be interpolated. This really restricts the
Maximum number of missing index values (with respect to `freq`) to fill. Must be greater than 0.
interpolation to chunks, containing not more than `limit` successive nan entries.
downgrade : bool, default False
downgrade : bool, default False
If `True` and the interpolation can not be performed at current order, retry with a lower order.
If `True` and the interpolation can not be performed at current order, retry with a lower order.
...
...
This diff is collapsed.
Click to expand it.
saqc/lib/ts_operators.py
+
1
−
1
View file @
d710cb91
...
@@ -301,7 +301,7 @@ def interpolateNANs(
...
@@ -301,7 +301,7 @@ def interpolateNANs(
:return:
:return:
"""
"""
inter_limit
=
int
(
inter_limit
)
inter_limit
=
int
(
inter_limit
or
len
(
data
)
+
1
)
data
=
pd
.
Series
(
data
,
copy
=
True
)
data
=
pd
.
Series
(
data
,
copy
=
True
)
gap_mask
=
data
.
isna
().
rolling
(
inter_limit
,
min_periods
=
0
).
sum
()
!=
inter_limit
gap_mask
=
data
.
isna
().
rolling
(
inter_limit
,
min_periods
=
0
).
sum
()
!=
inter_limit
...
...
This diff is collapsed.
Click to expand it.
tests/funcs/test_resampling.py
+
1
−
1
View file @
d710cb91
...
@@ -124,7 +124,7 @@ def test_gridInterpolation(data, method, fill_history):
...
@@ -124,7 +124,7 @@ def test_gridInterpolation(data, method, fill_history):
res
=
qc
.
interpolate
(
res
=
qc
.
interpolate
(
field
,
field
,
freq
,
freq
,
order
=
10
,
order
=
9
,
method
=
method
,
method
=
method
,
downcast_interpolation
=
True
,
downcast_interpolation
=
True
,
)
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment