Python documentation
Created by: rkube
Hi, the Python Read “step-by-step” example in the docs has a typo:
for fstep in fh:
# inspect variables in current step
step_vars = fstep.available_variables()
# print variables information
for name, info in step_vars.items():
print("variable_name: " + name)
for key, value in info.items():
print("\t" + key + ": " + value)
print("\n")
# track current step
step = fh_step.current_step()
if( step == 0 ):
size_in = fh_step.read("size")
# read variables return a numpy array with corresponding selection
physical_time = fh_step.read("physical_time")
temperature = fh_step.read("temperature", start, count)
pressure = fh_step.read("pressure", start, count)
fh_step should be fstep, right?