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
33952a38
Commit
33952a38
authored
5 years ago
by
David Schäfer
Browse files
Options
Downloads
Patches
Plain Diff
fixed Series vs DataFrame bug
parent
8f676ee6
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
saqc/lib/plotting.py
+3
-3
3 additions, 3 deletions
saqc/lib/plotting.py
with
3 additions
and
3 deletions
saqc/lib/plotting.py
+
3
−
3
View file @
33952a38
#! /usr/bin/env python
#! /usr/bin/env python
# -*- coding: utf-8 -*-
# -*- coding: utf-8 -*-
# TODO: use the logging module
import
logging
import
logging
import
pandas
as
pd
import
pandas
as
pd
import
numpy
as
np
import
numpy
as
np
from
warnings
import
warn
__plotvars
=
[]
__plotvars
=
[]
...
@@ -24,7 +22,9 @@ def plotHook(data, old, new, varname, do_plot, flag_test, plot_nans=True):
...
@@ -24,7 +22,9 @@ def plotHook(data, old, new, varname, do_plot, flag_test, plot_nans=True):
__plotvars
.
append
(
varname
)
__plotvars
.
append
(
varname
)
# cannot use getFlags here, because if a flag was set (e.g. with force) the
# cannot use getFlags here, because if a flag was set (e.g. with force) the
# flag may be the same, but any additional row (e.g. comment-field) would differ
# flag may be the same, but any additional row (e.g. comment-field) would differ
mask
=
(
old
.
_flags
[
varname
]
!=
new
.
_flags
[
varname
]).
any
(
axis
=
1
)
mask
=
(
old
.
_flags
[
varname
]
!=
new
.
_flags
[
varname
])
if
isinstance
(
mask
,
pd
.
DataFrame
):
mask
=
mask
.
any
(
axis
=
1
)
_plot
(
data
,
new
,
mask
,
varname
,
title
=
flag_test
,
plot_nans
=
plot_nans
)
_plot
(
data
,
new
,
mask
,
varname
,
title
=
flag_test
,
plot_nans
=
plot_nans
)
...
...
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