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
a9ff49ef
Commit
a9ff49ef
authored
3 years ago
by
David Schäfer
Browse files
Options
Downloads
Patches
Plain Diff
minor core cleanups
parent
88c05505
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Pipeline
#28928
passed with stage
in 2 minutes and 6 seconds
Changes
2
Pipelines
10
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
saqc/core/core.py
+3
-17
3 additions, 17 deletions
saqc/core/core.py
saqc/core/lib.py
+0
-1
0 additions, 1 deletion
saqc/core/lib.py
with
3 additions
and
18 deletions
saqc/core/core.py
+
3
−
17
View file @
a9ff49ef
...
...
@@ -2,45 +2,30 @@
# -*- coding: utf-8 -*-
from
__future__
import
annotations
# TODO:
# - integrate plotting into the api
# - `data` and `flags` as arguments to `getResult`
import
logging
import
inspect
import
copy
as
stdcopy
from
saqc.lib.tools
import
toSequence
from
typing
import
Tuple
,
Union
,
Optional
from
typing_extensions
import
Literal
import
pandas
as
pd
import
numpy
as
np
import
inspect
import
matplotlib
from
dios
import
DictOfSeries
,
to_dios
from
saqc.core.flags
import
initFlagsLike
,
Flags
from
saqc.core.lib
import
APIController
,
ColumnSelector
from
saqc.core.register
import
FUNC_MAP
,
SaQCFunction
from
saqc.core.modules
import
FuncModules
from
saqc.core.translator.basetranslator
import
Translator
,
FloatTranslator
from
saqc.lib.types
import
ExternalFlag
,
CallGraph
,
MaterializedGraph
,
PandasLike
from
saqc.constants
import
BAD
from
saqc.lib.plotting
import
makeFig
from
saqc.core.translator.basetranslator
import
Translator
,
FloatTranslator
from
saqc.lib.tools
import
toSequence
from
saqc.lib.types
import
(
ExternalFlag
,
CallGraph
,
MaterializedGraph
,
PandasLike
,
FreqString
,
)
from
saqc.lib.tools
import
toSequence
logger
=
logging
.
getLogger
(
"
SaQC
"
)
...
...
@@ -301,6 +286,7 @@ class SaQC(FuncModules):
**
{
"
nodata
"
:
self
.
_nodata
,
"
flag
"
:
self
.
_translator
(
flag
),
**
fkwargs
},
)
# expand regular expressions
fields
=
self
.
_data
.
columns
.
str
.
match
(
field
)
if
regex
else
toSequence
(
field
)
for
field
in
fields
:
target
=
target
if
target
is
not
None
else
field
...
...
This diff is collapsed.
Click to expand it.
saqc/core/lib.py
+
0
−
1
View file @
a9ff49ef
...
...
@@ -17,7 +17,6 @@ class ColumnSelector:
return
f
"
{
self
.
__class__
.
__name__
}
(
{
self
.
field
}
)
"
# TODO: this seems obsolete
@dataclass
class
APIController
:
def
errorMessage
(
self
):
...
...
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