You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
All the data.gas.XXX attributes are cosmo_arrays, but unfortunately data.gas.HI_mass_fraction is not, since multiplication of cosmo_arrays does not conserve the cosmo properties. project_gas will fail when it tries to confirm that HI_mass_fraction and the coordinates are compatible cosmological quantities.
The only way to fix this would be to add support for multiplication (and maybe some other operators) to cosmo_array. We probably also want to disable unsupported operations to be on the safe side.
The text was updated successfully, but these errors were encountered:
#131 is a symptom of the same issue. #132 is nearly ready to merge and will implement all the ufuncs supported for unyt_arrays for use with cosmo_arrays.
Merging #137 and #141 unfortunately broke some of the visualisation functions. Consider the following code snippet:
All the
data.gas.XXX
attributes arecosmo_array
s, but unfortunatelydata.gas.HI_mass_fraction
is not, since multiplication ofcosmo_array
s does not conserve thecosmo
properties.project_gas
will fail when it tries to confirm thatHI_mass_fraction
and the coordinates are compatible cosmological quantities.The only way to fix this would be to add support for multiplication (and maybe some other operators) to
cosmo_array
. We probably also want to disable unsupported operations to be on the safe side.The text was updated successfully, but these errors were encountered: