Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
finam
Manage
Activity
Members
Labels
Plan
Issues
32
Issue boards
Milestones
Code
Merge requests
4
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Monitor
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
FINAM
finam
Commits
66acddbe
Commit
66acddbe
authored
2 years ago
by
Martin Lange
Browse files
Options
Downloads
Patches
Plain Diff
simplify setting status: no strings allowed anymore; fix docstring
parent
689896f6
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!232
Simplify setting status: no strings allowed anymore
Pipeline
#134119
passed with stages
in 7 minutes and 10 seconds
Changes
2
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/finam/data/tools.py
+1
-1
1 addition, 1 deletion
src/finam/data/tools.py
src/finam/sdk/component.py
+1
-2
1 addition, 2 deletions
src/finam/sdk/component.py
with
2 additions
and
3 deletions
src/finam/data/tools.py
+
1
−
1
View file @
66acddbe
...
...
@@ -469,7 +469,7 @@ def is_quantified(xdata):
Returns
-------
bool
Wether the data is a quantified DataArray.
W
h
ether the data is a quantified DataArray.
"""
return
isinstance
(
xdata
,
xr
.
DataArray
)
and
xdata
.
pint
.
units
is
not
None
...
...
This diff is collapsed.
Click to expand it.
src/finam/sdk/component.py
+
1
−
2
View file @
66acddbe
...
...
@@ -201,8 +201,7 @@ class Component(IComponent, Loggable, ABC):
@status.setter
def
status
(
self
,
status
):
"""
The component
'
s current status.
"""
with
ErrorLogger
(
self
.
logger
):
self
.
_status
=
get_enum_value
(
status
,
ComponentStatus
,
FinamStatusError
)
self
.
_status
=
status
@property
def
name
(
self
):
...
...
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