1
0
Fork 0
mirror of https://github.com/cosmo-sims/cosmICweb-music.git synced 2024-09-19 16:53:43 +02:00

keep ellipsoid as regular floats so it's more similar to the website

This commit is contained in:
Lukas Winkler 2024-04-19 16:42:17 +02:00
parent ee3d6db0b3
commit 5bed061b94
Signed by: lukas
GPG key ID: 54DE4D798D244853

View file

@ -197,10 +197,10 @@ def music_config_to_template(music_config, configuration):
def compose_template(template, ellipsoid):
# TODO: add ellipsoid header (rtb, halo_name, etc)
shape_0 = ", ".join("{:13.6e}".format(e) for e in ellipsoid.shape[0])
shape_1 = ", ".join("{:13.6e}".format(e) for e in ellipsoid.shape[1])
shape_2 = ", ".join("{:13.6e}".format(e) for e in ellipsoid.shape[2])
center = ", ".join("{:13.6e}".format(x) for x in ellipsoid.center)
shape_0 = ", ".join(str(e) for e in ellipsoid.shape[0])
shape_1 = ", ".join(str(e) for e in ellipsoid.shape[1])
shape_2 = ", ".join(str(e) for e in ellipsoid.shape[2])
center = ", ".join(str(x) for x in ellipsoid.center)
ellipsoid_lines = (
"region = ellipsoid\n"