Closed earnric closed 8 years ago
That seems to be something that you changed yourself at some point (https://github.com/pynbody/pynbody/commit/2d94702c09e511fc2652d2845b5f8e88d96d6f55) - perhaps you can take another look at why it's failing again?
Yea... I thought I fixed this some time ago... it works under py2.7. Let me try to figure out why the fix for py3 doesn't work any longer!
@apontzen Looks like this is an (desired) integer divide right? If so, there are some extra parameters I need to put on the np.divide to for it to work with the numpy array 'n' (that make it compatible with python 3).
Confirmed that we want an integer divide for this operation. Also confirmed that we can use:
n //= 8
Works in both py27 and py30. I can create a pull request.
When trying to convert a RAMSES output file via
pynbody.analysis.ramses_util.convert_to_tipsy_fullbox('output_00001')
you get the following error.