-#!/usr/bin/python2
+#!/usr/bin/python3
"""
Display volumetric data from the Stanford Volume Data Archive. The
def usage():
binary = sys.argv[0]
- print "Usage:", binary, "<data file>"
+ print(f"Usage: {binary} <data file>")
if len(sys.argv) < 2:
usage()
data = np.fromfile(sys.argv[1], dtype='>u2')
original_data_length = 7143424
-multiplier = cube_root(len(data) / original_data_length)
+multiplier = cube_root(len(data) // original_data_length)
data.shape = (109*multiplier, 256*multiplier, 256*multiplier)
data = data.T