Fixes for gadget IO
This commit is contained in:
parent
689cc70daa
commit
46831ba9ab
4 changed files with 6 additions and 5 deletions
|
@ -513,7 +513,8 @@ def writeGadget(str filename, object simulation):
|
|||
simdata.TotalNumPart = NumPart
|
||||
simdata.NumPart = NumPart
|
||||
|
||||
cxx_writeGadget(filename, &simdata)
|
||||
filename_b = bytes(filename, 'utf-8')
|
||||
cxx_writeGadget(filename_b, &simdata)
|
||||
|
||||
def loadRamses(str basepath, int snapshot_id, int cpu_id, bool doublePrecision = False, bool loadPosition = True, bool loadVelocity = False, bool loadId = False, bool loadMass = False):
|
||||
""" loadRamses(basepath, snapshot_id, cpu_id, doublePrecision = False, loadPosition = True, loadVelocity = False)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue