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
7
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
ef9b8b31
Commit
ef9b8b31
authored
2 years ago
by
David Schäfer
Browse files
Options
Downloads
Patches
Plain Diff
removed unused option
parent
c2049c15
No related branches found
No related tags found
1 merge request
!581
Draft: Multivariate plotting
Pipeline
#132648
failed with stages
in 59 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
saqc/funcs/tools.py
+0
-11
0 additions, 11 deletions
saqc/funcs/tools.py
saqc/lib/plotting.py
+2
-21
2 additions, 21 deletions
saqc/lib/plotting.py
tests/funcs/test_tools.py
+2
-6
2 additions, 6 deletions
tests/funcs/test_tools.py
with
4 additions
and
38 deletions
saqc/funcs/tools.py
+
0
−
11
View file @
ef9b8b31
...
...
@@ -230,7 +230,6 @@ class ToolsMixin:
field
:
str
,
path
:
Optional
[
str
]
=
None
,
max_gap
:
Optional
[
str
]
=
None
,
history
:
Optional
[
Literal
[
"
valid
"
,
"
complete
"
]
|
list
]
=
"
valid
"
,
xscope
:
Optional
[
slice
]
=
None
,
phaseplot
:
Optional
[
str
]
=
None
,
store_kwargs
:
Optional
[
dict
]
=
None
,
...
...
@@ -264,15 +263,6 @@ class ToolsMixin:
before plotting. If an offset string is passed, only points that have a distance
below `max_gap` get connected via the plotting line.
history : {
"
valid
"
,
"
complete
"
, None, list of strings}, default
"
valid
"
Discriminate the plotted flags with respect to the tests they originate from.
*
"
valid
"
- Only plot those flags, that do not get altered or
"
unflagged
"
by subsequent tests. Only list tests
in the legend, that actually contributed flags to the overall resault.
*
"
complete
"
- plot all the flags set and list all the tests ran on a variable. Suitable for debugging/tracking.
* None - just plot the resulting flags for one variable, without any historical meta information.
* list of strings - plot only flags set by those tests listed.
xscope : slice or Offset, default None
Parameter, that determines a chunk of the data to be plotted
processed. `xscope` can be anything, that is a valid argument to the ``pandas.Series.__getitem__`` method.
...
...
@@ -321,7 +311,6 @@ class ToolsMixin:
flags
=
flags
,
level
=
level
,
max_gap
=
max_gap
,
history
=
history
,
xscope
=
xscope
,
phaseplots
=
phaseplot
,
ax_kwargs
=
ax_kwargs
,
...
...
This diff is collapsed.
Click to expand it.
saqc/lib/plotting.py
+
2
−
21
View file @
ef9b8b31
...
...
@@ -13,7 +13,6 @@ import matplotlib as mpl
import
matplotlib.pyplot
as
plt
import
numpy
as
np
import
pandas
as
pd
from
typing_extensions
import
Literal
from
saqc.core.flags
import
Flags
,
History
from
saqc.lib.tools
import
toSequence
...
...
@@ -63,7 +62,6 @@ def makeFig(
flags
:
Flags
,
level
:
float
,
max_gap
:
str
|
None
=
None
,
history
:
Literal
[
"
valid
"
,
"
complete
"
]
|
Sequence
[
str
]
|
None
=
"
valid
"
,
xscope
:
slice
|
None
=
None
,
phaseplots
:
Sequence
[
str
]
|
None
=
None
,
ax_kwargs
:
dict
|
None
=
None
,
...
...
@@ -91,18 +89,6 @@ def makeFig(
before plotting. If an Offset string is passed, only points that have a distance
below `max_gap` get connected via the plotting line.
history : {
"
valid
"
,
"
complete
"
, None, list of strings}, default
"
valid
"
Discriminate the plotted flags with respect to the tests they originate from.
*
"
valid
"
- Only plot those flags, that do not get altered or
"
unflagged
"
by subsequent tests. Only list tests
in the legend, that actually contributed flags to the overall resault.
*
"
complete
"
- plot all the flags set and list all the tests ran on a variable. Suitable for debugging/tracking.
*
"
clear
"
- clear plot from all the flagged values
* None - just plot the resulting flags for one variable, without any historical meta information.
* list of strings - for any string ``s`` in the list, plot the flags set by test labeled, ``s`` - if ``s`` is
not present in the history labels, plot any flags, set by a test labeled ``s``
xscope : slice or Offset, default None
Parameter, that determines a chunk of the data to be plotted /
processed. `s` can be anything, that is a valid argument to the ``pandas.Series.__getitem__`` method.
...
...
@@ -206,13 +192,8 @@ def _getMarkers(
histories
:
Sequence
[
History
],
cyclestart
:
int
)
->
dict
[
str
,
dict
[
str
,
str
]]:
shapes
=
SCATTER_KWARGS
.
get
(
"
marker
"
,
"
o
"
)
shapes
=
itertools
.
cycle
(
toSequence
(
shapes
))
colors
=
SCATTER_KWARGS
.
get
(
"
color
"
,
plt
.
rcParams
[
"
axes.prop_cycle
"
].
by_key
()[
"
color
"
]
)
colors
=
itertools
.
cycle
(
toSequence
(
colors
))
shapes
=
itertools
.
cycle
(
toSequence
(
SCATTER_KWARGS
[
"
marker
"
]))
colors
=
itertools
.
cycle
(
toSequence
(
SCATTER_KWARGS
[
"
color
"
]))
for
_
in
range
(
0
,
cyclestart
):
next
(
colors
)
next
(
shapes
)
...
...
This diff is collapsed.
Click to expand it.
tests/funcs/test_tools.py
+
2
−
6
View file @
ef9b8b31
...
...
@@ -24,15 +24,11 @@ def test_makeFig():
d_saqc
=
(
d_saqc
.
flagRange
(
"
data
"
,
max
=
500
)
.
flagRange
(
"
data
"
,
max
=
400
)
.
flagRange
(
"
data
"
,
max
=
300
)
.
flagRange
(
"
data
"
,
max
=
300
)
)
# not interactive, no storing
dummy_path
=
""
d_saqc
=
d_saqc
.
plot
(
field
=
"
data
"
,
path
=
""
)
d_saqc
=
d_saqc
.
plot
(
field
=
"
data
"
,
path
=
dummy_path
,
history
=
"
valid
"
,
stats
=
True
)
d_saqc
=
d_saqc
.
plot
(
field
=
"
data
"
,
path
=
dummy_path
,
history
=
"
complete
"
)
d_saqc
=
d_saqc
.
plot
(
field
=
"
data
"
,
path
=
dummy_path
,
ax_kwargs
=
{
"
ylabel
"
:
"
data is data
"
},
stats
=
True
field
=
"
data
"
,
path
=
""
,
ax_kwargs
=
{
"
ylabel
"
:
"
data is data
"
},
stats
=
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