I ran into a recursion limit in trying to access Gas_Energy-- I
believe it has something to do with the workaround for the underscore
in GasEnergy. I'm using code that worked at some time before April,
but has since stopped, I believe that the 'working' code didn't have
the "Gas_?Energy" update.
I've overloaded GasEnergy in my plugins.py to return isothermal gas
energy, since I don't have a GasEnergy field (or a TotalEnergy, for
that matter) in my simulations. However, when I now go to access it,
I get stuck in the ping pong between "GasEnergy" and "Gas_Energy" in
def _GasEnergy(field, data):
return data["Gas_Energy"] / _convertEnergy(data)
def _Gas_Energy(field, data):
return data["GasEnergy"] / _convertEnergy(data)
instead of using my own field. Why doesn't it take mine first, before
looking in EnzoFields.py? Is there a way to force this behavior?