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
41add92f
Commit
41add92f
authored
Jul 19, 2019
by
Guang
Committed by
Guang
Oct 23, 2019
Browse files
Revert "force redshfit decimals to int type"
This reverts commit
5343ff65
.
parent
f11b1e88
Changes
1
Hide whitespace changes
Inline
Side-by-side
pcigale/session/configuration.py
View file @
41add92f
...
...
@@ -353,7 +353,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
=
int
(
self
.
config
[
'analysis_params'
][
'redshift_decimals'
]
)
decimals
=
self
.
config
[
'analysis_params'
][
'redshift_decimals'
]
if
decimals
<
0
:
z
=
list
(
np
.
unique
(
obs_table
[
'redshift'
]))
else
:
...
...
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