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
ff10d470
Commit
ff10d470
authored
2 years ago
by
Martin Lange
Browse files
Options
Downloads
Patches
Plain Diff
check for multiple conflicting infos in output
parent
bd4555f7
No related branches found
No related tags found
1 merge request
!104
Check multiple output infos compatibility
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/finam/core/sdk/output.py
+14
-0
14 additions, 0 deletions
src/finam/core/sdk/output.py
with
14 additions
and
0 deletions
src/finam/core/sdk/output.py
+
14
−
0
View file @
ff10d470
...
...
@@ -194,6 +194,20 @@ class Output(IOutput, Loggable):
if
self
.
_output_info
is
None
:
raise
FinamNoDataError
(
"
No data info available
"
)
if
self
.
_out_infos_exchanged
>
0
:
fail_info
=
{}
if
not
self
.
_output_info
.
accepts
(
info
,
fail_info
):
fail_info
=
"
\n
"
.
join
(
[
f
"
{
name
}
- got
{
got
}
, expected
{
exp
}
"
for
name
,
(
got
,
exp
)
in
fail_info
.
items
()
]
)
with
LogError
(
self
.
logger
):
raise
FinamMetaDataError
(
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
(
...
...
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