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
Guang
x-cigale
Commits
5343ff65
Commit
5343ff65
authored
Jul 19, 2019
by
Guang
Browse files
force redshfit decimals to int type
parent
cf414ff3
Changes
1
Hide whitespace changes
Inline
Side-by-side
pcigale/session/configuration.py
View file @
5343ff65
...
...
@@ -348,7 +348,7 @@ class Configuration(object):
if
self
.
config
[
'data_file'
]:
obs_table
=
read_table
(
self
.
config
[
'data_file'
])
if
'redshift_decimals'
in
self
.
config
[
'analysis_params'
]:
decimals
=
self
.
config
[
'analysis_params'
][
'redshift_decimals'
]
decimals
=
int
(
self
.
config
[
'analysis_params'
][
'redshift_decimals'
]
)
if
decimals
<
0
:
z
=
list
(
np
.
unique
(
obs_table
[
'redshift'
]))
else
:
...
...
Guang
@gyang
mentioned in commit
3d35687a
·
Jul 19, 2019
mentioned in commit
3d35687a
mentioned in commit 3d35687af9a149c8ff102ae1e893538670ca02e3
Toggle commit list
Guang
@gyang
mentioned in commit
41add92f
·
Oct 23, 2019
mentioned in commit
41add92f
mentioned in commit 41add92f7aa80eade26f94bb3be1013edcb3b8ad
Toggle commit list
Write
Preview
Supports
Markdown
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