Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
force-bdss
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
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
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Adham Hashibon
force-bdss
Commits
c5cf79bf
Commit
c5cf79bf
authored
6 years ago
by
Stefano Borini
Browse files
Options
Downloads
Patches
Plain Diff
More protections
parent
058d4b23
No related branches found
No related tags found
1 merge request
!138
More robust logging for BDSS
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
force_bdss/core_evaluation_driver.py
+3
-2
3 additions, 2 deletions
force_bdss/core_evaluation_driver.py
force_bdss/core_mco_driver.py
+12
-2
12 additions, 2 deletions
force_bdss/core_mco_driver.py
with
15 additions
and
4 deletions
force_bdss/core_evaluation_driver.py
+
3
−
2
View file @
c5cf79bf
...
...
@@ -38,8 +38,9 @@ class CoreEvaluationDriver(BaseCoreDriver):
"
Unable to create communicator from MCO factory
'
{}
'
"
"
in plugin
'
{}
'
. This may indicate a programming
"
"
error in the plugin
"
.
format
(
mco_factory
.
get_identifier
()
,
mco_factory
.
id
,
mco_factory
.
plugin
.
id
))
raise
mco_data_values
=
_get_data_values_from_mco
(
mco_model
,
mco_communicator
)
...
...
@@ -100,7 +101,7 @@ def _compute_layer_results(environment_data_values,
"
Unable to create data source from factory
'
{}
'
"
"
in plugin
'
{}
'
. This may indicate a programming
"
"
error in the plugin
"
.
format
(
factory
.
get_identifier
()
,
factory
.
id
,
factory
.
plugin
.
id
))
raise
...
...
This diff is collapsed.
Click to expand it.
force_bdss/core_mco_driver.py
+
12
−
2
View file @
c5cf79bf
...
...
@@ -25,7 +25,17 @@ class CoreMCODriver(BaseCoreDriver):
@on_trait_change
(
"
application:started
"
)
def
application_started
(
self
):
self
.
mco
.
run
(
self
.
workflow
.
mco
)
mco
=
self
.
workflow
.
mco
try
:
mco
.
run
(
self
.
workflow
.
mco
)
except
Exception
:
log
.
exception
(
"
Method run() of MCO with id
'
{}
'
from plugin
'
{}
'
"
"
raised exception. This might indicate a
"
"
programming error in the plugin.
"
.
format
(
mco
.
factory
.
id
,
mco
.
factory
.
plugin
.
id
))
raise
@on_trait_change
(
"
application:stopping
"
)
def
application_stopping
(
self
):
...
...
@@ -38,7 +48,7 @@ class CoreMCODriver(BaseCoreDriver):
workflow
=
self
.
workflow
except
Exception
:
log
.
exception
(
"
Unable to open workflow file.
"
)
sys
.
exit
(
1
)
raise
mco_model
=
workflow
.
mco
if
mco_model
is
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