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
da85993c
Commit
da85993c
authored
5 years ago
by
David Schäfer
Browse files
Options
Downloads
Patches
Plain Diff
changes to the cli
parent
0d5d01d5
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/__main__.py
+7
-5
7 additions, 5 deletions
saqc/__main__.py
with
7 additions
and
5 deletions
saqc/__main__.py
+
7
−
5
View file @
da85993c
...
...
@@ -9,19 +9,21 @@ import pandas as pd
from
saqc.core
import
runner
from
saqc.flagger
import
CategoricalFlagger
FLAGGERS
=
{
"
number
"
:
CategoricalFlagger
([
-
1
,
0
,
1
]),
"
string
"
:
CategoricalFlagger
([
"
NIL
"
,
"
OK
"
,
"
BAD
"
])
"
category
"
:
CategoricalFlagger
([
"
NIL
"
,
"
OK
"
,
"
BAD
"
])
}
@click.command
()
@click.option
(
"
-c
"
,
"
--config
"
,
type
=
click
.
Path
(
exists
=
True
),
required
=
True
,
help
=
"
path to the configuration file
"
)
@click.option
(
"
-d
"
,
"
--data
"
,
type
=
click
.
Path
(
exists
=
True
),
required
=
True
,
help
=
"
path to the data file
"
)
@click.option
(
"
--flagger
"
,
default
=
"
string
"
,
type
=
click
.
Choice
(
FLAGGERS
.
keys
()),
help
=
"
the flagging scheme to use
"
)
@click.option
(
"
-o
"
,
"
--outfile
"
,
type
=
click
.
Path
(),
help
=
"
path to the output file
"
)
@click.option
(
"
--flagger
"
,
default
=
"
category
"
,
type
=
click
.
Choice
(
FLAGGERS
.
keys
()),
help
=
"
the flagging scheme to use
"
)
@click.option
(
"
--nodata
"
,
default
=
np
.
nan
,
help
=
"
nodata value
"
)
@click.option
(
"
--fail/--no-fail
"
,
default
=
True
,
help
=
"
whether to stop the program run on errors
"
)
@click.option
(
"
--nodata
"
,
default
=
np
.
nan
,
help
=
"
the nodata value
"
)
@click.option
(
"
--plot/--noplot
"
,
default
=
False
,
help
=
"
whether to plot the results
"
)
def
main
(
config
,
data
,
flagger
,
fail
,
nodata
,
plot
):
def
main
(
config
,
data
,
flagger
,
outfile
,
nodata
,
fail
):
data
=
pd
.
read_csv
(
data
,
...
...
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