Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
finam
Manage
Activity
Members
Labels
Plan
Issues
31
Issue boards
Milestones
Code
Merge requests
3
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
730d969b
Commit
730d969b
authored
2 years ago
by
Martin Lange
Browse files
Options
Downloads
Patches
Plain Diff
more error logging in inputs and outputs
parent
15db14ea
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!134
Allow trigger component to get external starting time
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/finam/sdk/input.py
+2
-3
2 additions, 3 deletions
src/finam/sdk/input.py
src/finam/sdk/output.py
+20
-19
20 additions, 19 deletions
src/finam/sdk/output.py
with
22 additions
and
22 deletions
src/finam/sdk/input.py
+
2
−
3
View file @
730d969b
...
...
@@ -103,10 +103,9 @@ class Input(IInput, Loggable):
data
=
self
.
source
.
get_data
(
time
)
if
"
units
"
in
self
.
_input_info
.
meta
:
data
=
tools
.
to_units
(
data
,
self
.
_input_info
.
units
)
with
ErrorLogger
(
self
.
logger
):
if
"
units
"
in
self
.
_input_info
.
meta
:
data
=
tools
.
to_units
(
data
,
self
.
_input_info
.
units
)
tools
.
check
(
data
,
data
.
name
,
self
.
_input_info
,
time
,
ignore_time
=
True
)
return
data
...
...
This diff is collapsed.
Click to expand it.
src/finam/sdk/output.py
+
20
−
19
View file @
730d969b
...
...
@@ -214,30 +214,31 @@ class Output(IOutput, Loggable):
f
"
Can
'
t accept multiple conflicting data infos. Failed entries:
\n
{
fail_info
}
"
)
if
self
.
_output_info
.
grid
is
None
:
if
info
.
grid
is
None
:
raise
FinamMetaDataError
(
"
Can
'
t set property `grid` from target info, as it is not provided
"
)
self
.
_output_info
.
grid
=
info
.
grid
if
self
.
_output_info
.
time
is
None
:
if
info
.
time
is
None
:
raise
FinamMetaDataError
(
"
Can
'
t set property `time` from target info, as it is not provided
"
)
with
ErrorLogger
(
self
.
logger
):
if
self
.
_output_info
.
grid
is
None
:
if
info
.
grid
is
None
:
raise
FinamMetaDataError
(
"
Can
'
t set property `grid` from target info, as it is not provided
"
)
self
.
_output_info
.
time
=
info
.
time
self
.
_output_info
.
grid
=
info
.
grid
for
k
,
v
in
self
.
_output_info
.
meta
.
items
():
if
v
is
None
:
if
k
not
in
info
.
meta
or
info
.
meta
[
k
]
is
None
:
if
self
.
_output_info
.
time
is
None
:
if
info
.
time
is
None
:
raise
FinamMetaDataError
(
f
"
Can
'
t set property `me
ta.
{
k
}
` from target info, as it is not provided
"
"
Can
'
t set property `
ti
me` from target info, as it is not provided
"
)
self
.
_output_info
.
meta
[
k
]
=
info
.
meta
[
k
]
self
.
_output_info
.
time
=
info
.
time
for
k
,
v
in
self
.
_output_info
.
meta
.
items
():
if
v
is
None
:
if
k
not
in
info
.
meta
or
info
.
meta
[
k
]
is
None
:
raise
FinamMetaDataError
(
f
"
Can
'
t set property `meta.
{
k
}
` from target info, as it is not provided
"
)
self
.
_output_info
.
meta
[
k
]
=
info
.
meta
[
k
]
self
.
_out_infos_exchanged
+=
1
...
...
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