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
Show more breadcrumbs
rdm-software
SaQC
Commits
c1fea9d6
Commit
c1fea9d6
authored
5 years ago
by
Bert Palm
🎇
Browse files
Options
Downloads
Patches
Plain Diff
disable SettingWithCopyWarning
parent
f57283ed
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
saqc/core/core.py
+2
-0
2 additions, 0 deletions
saqc/core/core.py
saqc/lib/tools.py
+3
-0
3 additions, 0 deletions
saqc/lib/tools.py
with
5 additions
and
0 deletions
saqc/core/core.py
+
2
−
0
View file @
c1fea9d6
...
...
@@ -8,6 +8,7 @@ from .config import Fields, Params
from
..funcs
import
flagDispatch
from
..dsl
import
parseFlag
from
..lib.plotting
import
plot
from
..lib.tools
import
setup
def
flagWindow
(
flagger
,
flags
,
mask
,
direction
=
'
fw
'
,
window
=
0
,
**
kwargs
)
->
pd
.
Series
:
...
...
@@ -74,6 +75,7 @@ def collectVariables(meta, flagger, data, flags):
def
runner
(
metafname
,
flagger
,
data
,
flags
=
None
,
nodata
=
np
.
nan
):
setup
()
meta
=
prepareMeta
(
readMeta
(
metafname
),
data
)
# NOTE: split meta into the test and some 'meta' data
fields
=
[
Fields
.
VARNAME
,
Fields
.
START
,
Fields
.
END
,
Fields
.
ASSIGN
]
...
...
This diff is collapsed.
Click to expand it.
saqc/lib/tools.py
+
3
−
0
View file @
c1fea9d6
...
...
@@ -348,3 +348,6 @@ def sesonalMask(dtindex, month0=1, day0=1, month1=12, day1=None):
else
:
return
mask
def
setup
():
pd
.
set_option
(
'
mode.chained_assignment
'
,
'
warn
'
)
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