HF RL Explorer

You are working on the SWIFTSIM/swiftsimio repository. The source code is checked out at /testbed at commit…

You are working on the SWIFTSIM/swiftsimio repository. The source code is checked out at /testbed at commit…: a task in SWE-Lego-RL-2699 (Harbor dataset). x = np.arange(1) arr = sw.cosmo array(x, unyt.Mpc, comoving=True, scale factor=0.5, scale exponent=1) print(arr.cosmo factor) scalar = sw.cosmo…

The task

x = np.arange(1) arr = sw.cosmo_array(x, unyt.Mpc, comoving=True, scale_factor=0.5, scale_exponent=1) print(arr.cosmo_factor) scalar = sw.cosmo_array(x[0], unyt.Mpc, comoving=True, scale_factor=0.5, scale_exponent=1) print(scalar.cosmo_factor) ``` produces ``` 10.3.0 a at a=0.5 None at a=None ``` `cosmo_quantity`…

Part of Lego-X/Lego-RL-2699.