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
Merge requests
!785
Auto translation of input flags
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Auto translation of input flags
flagging-schemes
into
develop
Overview
3
Commits
2
Pipelines
4
Changes
4
Merged
David Schäfer
requested to merge
flagging-schemes
into
develop
1 year ago
Overview
3
Commits
2
Pipelines
4
Changes
1
Expand
Addresses
#451 (closed)
👍
0
👎
0
Merge request reports
Viewing commit
1ef83266
Prev
Next
Show latest version
1 file
+
9
−
2
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
1ef83266
property based scheme prep
· 1ef83266
David Schäfer
authored
1 year ago
saqc/core/core.py
+
9
−
2
Options
@@ -65,7 +65,7 @@ class SaQC(FunctionsMixin):
|
None
=
None
,
scheme
:
str
|
TranslationScheme
=
"
float
"
,
):
self
.
_
scheme
:
TranslationScheme
=
s
elf
.
_initTranslationScheme
(
scheme
)
self
.
scheme
:
TranslationScheme
=
s
cheme
self
.
_data
:
DictOfSeries
=
self
.
_initData
(
data
)
self
.
_flags
:
Flags
=
self
.
_initFlags
(
flags
)
self
.
_attrs
:
dict
=
{}
@@ -129,7 +129,14 @@ class SaQC(FunctionsMixin):
@scheme.setter
def
scheme
(
self
,
scheme
:
str
|
TranslationScheme
)
->
None
:
self
.
_scheme
=
self
.
_initTranslationScheme
(
scheme
)
if
isinstance
(
scheme
,
str
)
and
scheme
in
TRANSLATION_SCHEMES
:
scheme
=
TRANSLATION_SCHEMES
[
scheme
]()
if
not
isinstance
(
scheme
,
TranslationScheme
):
raise
TypeError
(
f
"
expected one of the following translation schemes
'
{
TRANSLATION_SCHEMES
.
keys
()
}
"
f
"
or an initialized Translator object, got
'
{
scheme
}
'"
)
self
.
_scheme
=
scheme
@property
def
_history
(
self
)
->
_HistAccess
:
@@ -153,7+160,7 @@
setattr
(
new
,
attr
,
copyfunc
(
getattr
(
self
,
attr
)))
return
new
def
__copy__
(
self
):
return
self
.
copy
(
deep
=
False
)
def
__deepcopy__
(
self
,
memodict
=
None
):
Loading