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
33175f2e
Commit
33175f2e
authored
5 years ago
by
David Schäfer
Browse files
Options
Downloads
Patches
Plain Diff
removed variable wildcard support
parent
04f72c5d
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!14
WIP: Expose the function parameter 'field' to the config
Pipeline
#2519
passed with stage
Stage: test
in 7 minutes and 4 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
docs/ConfigurationFiles.md
+3
-4
3 additions, 4 deletions
docs/ConfigurationFiles.md
saqc/core/reader.py
+0
-2
0 additions, 2 deletions
saqc/core/reader.py
test/core/test_reader.py
+1
-2
1 addition, 2 deletions
test/core/test_reader.py
with
4 additions
and
8 deletions
docs/ConfigurationFiles.md
+
3
−
4
View file @
33175f2e
...
...
@@ -68,21 +68,20 @@ yield 'publication-ready' results
|
`x`
|
`constant(window="3h")`
| True |
|
`y`
|
`range(min=-10, max=40)`
| |
###
Wildcard
s
###
Regular Expression
s
Some of the most basic tests (e.g. checks for missing values or range tests) but
also the more elaborated functions available (e.g. aggregation or interpolation
functions) are very likely to be used on all or at least several variables of
the processed dataset. As it becomes quite cumbersome to list all these
variables seperately, only to call the same functions with the same
parameters over and over again, SaQC supports
wildcards and
regular expressions
parameters over and over again, SaQC supports regular expressions
within the
`varname`
column.
| varname | test |
|--------------|--------------------------------------|
|
*
|
`harmonize_shift2Grid(freq="15Min")`
|
|
.
*
|
`harmonize_shift2Grid(freq="15Min")`
|
| (x
|
y) |
`missing()`
|
#### Bring it to a file
As mentioned above SaQC, expectd the configuration to be a table-like,
semicolon-separated text file. So the configuration from the
...
...
This diff is collapsed.
Click to expand it.
saqc/core/reader.py
+
0
−
2
View file @
33175f2e
...
...
@@ -81,8 +81,6 @@ def _expandVarnameWildcards(config: ConfigList, data: pd.DataFrame) -> ConfigLis
for
row
in
config
:
varname
=
row
[
F
.
VARNAME
]
if
varname
and
varname
not
in
data
:
if
varname
==
"
*
"
:
varname
=
"
.*
"
expansion
=
data
.
columns
[
data
.
columns
.
str
.
match
(
varname
)]
if
not
len
(
expansion
):
expansion
=
[
varname
]
...
...
This diff is collapsed.
Click to expand it.
test/core/test_reader.py
+
1
−
2
View file @
33175f2e
...
...
@@ -41,10 +41,9 @@ def test_configPreparation(data):
assert
result
==
expected
def
test_variable
Wildcards
(
data
):
def
test_variable
Regex
(
data
):
tests
=
[
(
"
*
"
,
"
.*
"
),
(
"
.*
"
,
"
.*
"
),
(
"
var(1|2)
"
,
"
var(1|2)
"
),
(
"
(.*3)
"
,
"
(.*3)
"
)
...
...
This diff is collapsed.
Click to expand it.
David Schäfer
@schaefed
mentioned in issue
#30 (closed)
·
5 years ago
mentioned in issue
#30 (closed)
mentioned in issue #30
Toggle commit list
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