def to_volume(self):
if hasattr(self.header.definitions, "<STR_LIT>"):<EOL><INDENT>X, Y, Z = self.header.definitions.Lattice<EOL><DEDENT>else:<EOL><INDENT>raise ValueError("<STR_LIT>")<EOL><DEDENT>volume = self.decoded_data.reshape(Z, Y, X)<EOL>return volume<EOL>
Return a 3D volume of the data