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
ef9c7128
Commit
ef9c7128
authored
2 years ago
by
Bert Palm
🎇
Browse files
Options
Downloads
Plain Diff
Merge branch 'history' into 'develop'
Expose History See merge request
!661
parents
044336be
b458b55b
No related branches found
Branches containing commit
No related tags found
Tags containing commit
3 merge requests
!685
Release 2.4
,
!684
Release 2.4
,
!661
Expose History
Pipeline
#162776
passed with stages
in 9 minutes and 46 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
CHANGELOG.md
+1
-0
1 addition, 0 deletions
CHANGELOG.md
saqc/core/core.py
+5
-1
5 additions, 1 deletion
saqc/core/core.py
saqc/core/flags.py
+4
-4
4 additions, 4 deletions
saqc/core/flags.py
with
10 additions
and
5 deletions
CHANGELOG.md
+
1
−
0
View file @
ef9c7128
...
...
@@ -11,6 +11,7 @@ SPDX-License-Identifier: GPL-3.0-or-later
### Added
-
Methods
`logicalAnd`
and
`logicalOr`
-
`Flags`
supports slicing and column selection with
`list`
or a
`pd.Index`
-
Expose the
`History`
via
`SaQC._history_`
### Changed
-
Deprecate
`interpolate`
,
`linear`
and
`shift`
in favor of
`align`
-
Depreacte
`roll`
in favor of
`rolling`
...
...
This diff is collapsed.
Click to expand it.
saqc/core/core.py
+
5
−
1
View file @
ef9c7128
...
...
@@ -15,7 +15,7 @@ from typing import Any, Hashable, MutableMapping
import
numpy
as
np
import
pandas
as
pd
from
saqc.core.flags
import
Flags
,
initFlagsLike
from
saqc.core.flags
import
Flags
,
_HistAccess
,
initFlagsLike
from
saqc.core.frame
import
DictOfSeries
from
saqc.core.history
import
History
from
saqc.core.register
import
FUNC_MAP
...
...
@@ -113,6 +113,10 @@ class SaQC(FunctionsMixin):
flags
.
attrs
=
self
.
_attrs
.
copy
()
return
flags
@property
def
_history
(
self
)
->
_HistAccess
:
return
self
.
_flags
.
history
def
__getattr__
(
self
,
key
):
"""
All failing attribute accesses are redirected to __getattr__.
...
...
This diff is collapsed.
Click to expand it.
saqc/core/flags.py
+
4
−
4
View file @
ef9c7128
...
...
@@ -36,17 +36,17 @@ ValueT = Union[pd.Series, Iterable, float]
class
_HistAccess
:
def
__init__
(
self
,
obj
:
Flags
):
self
.
obj
=
obj
self
.
_
obj
=
obj
def
__getitem__
(
self
,
key
:
str
)
->
History
:
return
self
.
obj
.
_data
[
key
]
return
self
.
_
obj
.
_data
[
key
]
def
__setitem__
(
self
,
key
:
str
,
value
:
History
):
if
not
isinstance
(
value
,
History
):
raise
TypeError
(
"
Not a History
"
)
self
.
obj
.
_validateHistForFlags
(
value
)
self
.
obj
.
_data
[
key
]
=
value
self
.
_
obj
.
_validateHistForFlags
(
value
)
self
.
_
obj
.
_data
[
key
]
=
value
class
Flags
:
...
...
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