Commit f2e00b46 authored by Yannick Roehlly's avatar Yannick Roehlly

Remove duplicate redshift in VO export

parent 78d5b6e1
...@@ -77,8 +77,7 @@ def save_sed_to_vo(sed, filename, norm=1.): ...@@ -77,8 +77,7 @@ def save_sed_to_vo(sed, filename, norm=1.):
# If there is a stellar population then the norm factor is the stellar # If there is a stellar population then the norm factor is the stellar
# mass. # mass.
votable.infos.append(Info(name="Galaxy mass in Msun", value=norm)) votable.infos.append(Info(name="Galaxy mass in Msun", value=norm))
votable.infos.append(Info(name="Redshift",
value=sed.info['universe.redshift']))
for name, value in sorted(sed.info.items()): for name, value in sorted(sed.info.items()):
if name in sed.mass_proportional_info: if name in sed.mass_proportional_info:
votable.infos.append(Info(name=name, value=norm * value)) votable.infos.append(Info(name=name, value=norm * value))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment