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
cfb0fd11
Commit
cfb0fd11
authored
5 years ago
by
David Schäfer
Browse files
Options
Downloads
Plain Diff
Merge branch 'master' of
https://git.ufz.de/rdm/saqc
parents
42520f96
3894937b
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
README.md
+8
-8
8 additions, 8 deletions
README.md
with
8 additions
and
8 deletions
README.md
+
8
−
8
View file @
cfb0fd11
...
@@ -104,21 +104,21 @@ In order to make your test available for the system you need to:
...
@@ -104,21 +104,21 @@ In order to make your test available for the system you need to:
the variable, the current test is performed on)
the variable, the current test is performed on)
+
`flags: pd.DataFrame`
: A dataframe holding the flags for the entire
+
`flags: pd.DataFrame`
: A dataframe holding the flags for the entire
dataset
dataset
+
`field: String`
: The name of the variable the current test is performed on.
+
`field: String`
: The name of the variable the current test is performed on
The data and flags for this variable is available via
`data[field]`
and
(i.e. a column index into
`data`
and
`columns`
).
The data and flags for this variable are available via
`data[field]`
and
`flags[field]`
respectively
`flags[field]`
respectively
+
`flagger: flagger.BaseFlagger`
: An instance of the
`BaseFlagger`
class
+
`flagger: flagger.BaseFlagger`
: An instance of the
`BaseFlagger`
class
(more likely one of its subclasses). To initialize, create or check
(more likely one of its subclasses). To initialize, create or check
against existing flags you should use the respective
`flagger`
-methods
against existing flags you should use the respective
`flagger`
-methods
(
`flagger.empytFlags`
,
`flagger.isFlagged`
and
`flagger.setFlag`
)
(
`flagger.empytFlags`
,
`flagger.isFlagged`
and
`flagger.setFlag`
)
+
`**kwargs: Any`
: All the parameters given in the configuration file are passed
+
`**kwargs: Any`
: All the parameters given in the configuration file are passed
to your function, you are of course free to make some of them require
s
to your function, you are of course free to make some of them require
d
by
the
signature.
`kwargs`
should be passed on to the
`flagger.setFlag`
by
your
signature.
`kwargs`
should be passed on to the
`flagger.setFlag`
method
s
, in order to allow configuration based fine tuning of the flagging
method, in order to allow configuration based fine tuning of the flagging
+
Function output:
+
Function output:
Your function needs to return two DataFrame/ndarray, data and flags. As
+
`data: Union[np.ndarray, pd.DataFrame]`
: The (hopefully unchanged) data
the names suggest, the first holds the data, the second the possibly
+
`flags: Union[np.ndarray, pd.DataFrame]`
: The (most likely modified) flags
modified flags
+
Note: The choosen interface allows you to not only manipulate
+
Note: The choosen interface allows you to not only manipulate
the flags, but also the data of the entire dataset within your function
the flags, but also the data of the entire dataset within your function
body. This freedom might come in handy, but also requires a certain amount
body. This freedom might come in handy, but also requires a certain amount
...
...
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