Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
I
IMAGINE
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
3
Issues
3
List
Boards
Labels
Service Desk
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ift
IMAGINE
Commits
c04cdc28
Commit
c04cdc28
authored
Nov 25, 2017
by
Theo Steininger
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug fixes.
parent
437bc335
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
imagine/magnetic_fields/magnetic_field/magnetic_field_factory.py
.../magnetic_fields/magnetic_field/magnetic_field_factory.py
+2
-2
imagine/pipeline.py
imagine/pipeline.py
+1
-1
No files found.
imagine/magnetic_fields/magnetic_field/magnetic_field_factory.py
View file @
c04cdc28
...
...
@@ -108,8 +108,8 @@ class MagneticFieldFactory(Loggable, object):
for
k
,
v
in
new_mapping
.
items
():
if
k
in
self
.
_variable_to_parameter_mappings
:
key
=
str
(
k
)
value
=
[
np
.
float
(
v
[
1
]),
np
.
float
(
v
[
2
]),
np
.
float
(
v
[
3
])]
self
.
_variable_to_parameter_mappings
.
update
(
(
key
,
value
)
)
value
=
[
np
.
float
(
v
[
0
]),
np
.
float
(
v
[
1
])]
self
.
_variable_to_parameter_mappings
.
update
(
{
key
:
value
}
)
self
.
logger
.
debug
(
"Updated variable_to_parameter_mapping %s "
"to %s"
%
(
key
,
str
(
value
)))
...
...
imagine/pipeline.py
View file @
c04cdc28
...
...
@@ -152,7 +152,7 @@ class Pipeline(Loggable, object):
# the worst possible likelihood value
if
np
.
any
(
cube_content
>
1.
)
or
np
.
any
(
cube_content
<
0.
):
self
.
logger
.
info
(
'Cube %s requested. Returned most negative '
'possible number.'
)
'possible number.'
%
cube_content
)
return
np
.
nan_to_num
(
-
np
.
inf
)
if
rank
!=
0
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment