Silo
Silo copied to clipboard
min_extents and max_extents mangled with Python interface
I'm attempting to use the Python interface to write a new Silo file that contains modifications to an existing Silo file. I'm using Python 3.11 and Silo 4.11.1. My code looks something like the following:
importedSilo = Silo.Open('input.silo', Silo.DB_READ)
outputSilo = Silo.Create('output.silo', 'test_output', Silo.DB_HDF5, Silo.DB_CLOBBER)
mesh = importedSilo.GetVarInfo('mesh', 1)
outputSilo.WriteObject('mesh', mesh)
importedSilo.Close()
outputSilo.Close()
When I inspect the input and output data sets, for the min_extents
and max_extents
metadata, I see:
INPUT SILO:
min_extents: (0.0, 0.0, 0.0)
max_extents: (126.88, 6.283185307179586, 443.0)
OUTPUT SILO:
min_extents1: 0.0
min_extents2: 0.0
min_extents3: 0.0
max_extents1: 126.88
max_extents2: 5.79923737063e-313
max_extents3: 1.230757558913e-312
Is there a way to preserve min_extents
and max_extents
data?