Closed lcordonnier closed 5 months ago
I changed:
data = numpy.ma.masked_array(data, reshaped_mask, dtype=numpy.float32)
to
data = numpy.ma.masked_array(data, reshaped_mask, dtype=data.dtype)
to retain the original dtype of data
. Does that kill the performance?
Performance is unaffected.
I've added a
read_all
method toOrvilleImageDB.py
which reads in all integrations at once and returns the headers in a list of dicts and the data in a 5d masked float32 array. Changing the masking process and array dtypes sped up the process about 3-4 times compared to the original iterative technique.