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
fe72cbeb
Commit
fe72cbeb
authored
2 years ago
by
Sebastian Müller
🐈
Browse files
Options
Downloads
Patches
Plain Diff
TimeComponent: fix status check in time property
parent
c6f7d06a
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!220
TimeComponent: fix status check in time property
Pipeline
#132506
passed with stages
in 3 minutes and 48 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/finam/sdk/component.py
+2
-1
2 additions, 1 deletion
src/finam/sdk/component.py
with
2 additions
and
1 deletion
src/finam/sdk/component.py
+
2
−
1
View file @
fe72cbeb
...
...
@@ -452,7 +452,8 @@ class TimeComponent(ITimeComponent, Component, ABC):
def
time
(
self
):
"""
The component
'
s current simulation time.
"""
if
self
.
_time
is
None
and
self
.
status
in
(
ComponentStatus
.
CREATED
or
ComponentStatus
.
INITIALIZED
ComponentStatus
.
CREATED
,
ComponentStatus
.
INITIALIZED
,
):
return
None
...
...
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