SWIFTSIM / swiftsimio

Python library for reading SWIFT data. Uses unyt and h5py.
GNU Lesser General Public License v3.0
18 stars 13 forks source link

Bug in objects.py #203

Open kyleaoman opened 2 months ago

kyleaoman commented 2 months ago

In function _return_without_cosmo_factor this:

        elif (cf is not None) and (cf2 is not None) and (cf == cf2):
            # both have cosmo_factor, and they match:
            pass

should be:

        elif (cf is not None) and (cf2 is not None) and ((cf == cf2) or (cf is None and cf2 is None)):
            # both have cosmo_factor, and they match, or neither has cosmo_factor:
            pass