Open mtremmel opened 7 years ago
Could you make your michaels_properties
module available somewhere so I can reproduce the exact issue?
I have a forked version... I think you can access it? It was forked from the original halo_database repository... how it is a part of pynbody. Not sure if that matters right now.
github.com/mtremmel/halo_database
OK I think quite a complex range of things have happened here.
First, there is something slightly strange about how _family_indices
is getting set which I don't quite understand. However this seems trivially fixable by changing line 1852 of pynbody's pynbody/snapshot/__init__.py
to sl = self._family_indices.get(fam,None)
(was originally sl = self._family_indices[fam]
)
Then there is something more annoying but more understandable. Basically the ne
property is specific to TipsySnap
(see line 980 of pynbody/snapshot/tipsy.py
forwards). But the snapshot is now of type RemoteSnap
, not TipsySnap
. This requires a more permanent fix but for now could you try changing all the TipsySnap.derived_quantity
to SimSnap.derived_quantity
in your tipsy.py
.
With these two modifications does your code operate correctly? If so we have identified the problem and can move onto figuring out more permanent fixes.
Tried load-mode=server with those changes and it works! So the problem has been found.
Permanent fix for this proposed in PR #5
@mtremmel please see if this works for you! Ignore the fact that the Travis tests are failing - this seems to be some py3.5-specific issue with a library somewhere; I'll track this down in the meantime.
I've merged but will wait to hear whether it fixes the original problem before closing the issue
When attempting to run a calculation that uses load-mode=server, the process crashes on a step where it is attempting to load in a derivable array (in this case, "ne" for gas particles). This does not occur when running with load-mode=partial. The error comes as a KeyError for gas family.