Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
SaQC
Manage
Activity
Members
Labels
Plan
Issues
35
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
484ec7b9
Commit
484ec7b9
authored
3 years ago
by
David Schäfer
Browse files
Options
Downloads
Patches
Plain Diff
[FIX] masking='none' resulted in an additional history column for all flags
parent
d90f933a
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Pipeline
#44676
passed with stage
in 2 minutes and 8 seconds
Changes
2
Pipelines
27
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
saqc/core/register.py
+3
-3
3 additions, 3 deletions
saqc/core/register.py
saqc/funcs/tools.py
+1
-1
1 addition, 1 deletion
saqc/funcs/tools.py
with
4 additions
and
4 deletions
saqc/core/register.py
+
3
−
3
View file @
484ec7b9
...
...
@@ -342,6 +342,8 @@ def _restoreFlags(flags: Flags, old_state: CallState):
columns
=
pd
.
Index
([
old_state
.
field
])
for
col
in
columns
.
union
(
new_columns
):
# if old_state.func_name == "breaks.flagMissing" and old_state.field == "H1_Voltage":
# import ipdb; ipdb.set_trace()
if
col
not
in
out
:
# ensure existence
out
.
history
[
col
]
=
History
(
index
=
flags
.
history
[
col
].
index
)
...
...
@@ -351,9 +353,7 @@ def _restoreFlags(flags: Flags, old_state: CallState):
# We only want to add new columns, that were appended during the last function
# call. If no such columns exist, we end up with an empty new_history.
start
=
0
if
col
in
old_history
.
columns
:
start
=
len
(
old_history
.
columns
)
start
=
len
(
old_history
.
columns
)
new_history
=
_sliceHistory
(
new_history
,
slice
(
start
,
None
))
# NOTE:
...
...
This diff is collapsed.
Click to expand it.
saqc/funcs/tools.py
+
1
−
1
View file @
484ec7b9
...
...
@@ -367,7 +367,7 @@ def plot(
data
=
data
,
field
=
field
,
flags
=
flags
,
level
=
kwargs
.
get
(
'
flag
'
,
BAD
),
level
=
kwargs
.
get
(
"
flag
"
,
BAD
),
max_gap
=
max_gap
,
stats
=
stats
,
plot_kwargs
=
plot_kwargs
,
...
...
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