Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Neel Shah
NIFTy
Commits
f8fcace5
Commit
f8fcace5
authored
Jun 09, 2017
by
Theo Steininger
Browse files
Fixed dtype of field to be at minimum np.float.
parent
a67eda68
Changes
1
Hide whitespace changes
Inline
Side-by-side
nifty/field.py
View file @
f8fcace5
...
...
@@ -170,6 +170,8 @@ class Field(Loggable, Versionable, object):
else
:
dtype
=
np
.
dtype
(
dtype
)
dtype
=
np
.
result_type
(
dtype
,
np
.
float
)
return
dtype
def
_parse_distribution_strategy
(
self
,
distribution_strategy
,
val
):
...
...
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