INNER CODE UNIT · Python
days
MathCancer/PhysiCell · beta/anim_substrate2D.py:117
days = hrs/24.
title_str = '%d days, %d hrs, %d mins' % (int(days),(hrs%24), mins - (hrs*60))
print(title_str)
fname = "output%08d_microenvironment0.mat" % current_idx
output_dir_str = '.'
fullname = output_dir_str + "/" + fname
if not pathlib.Path(fullname).is_file():
print("file not found",fullname)
return
info_dict = {}
scipy.io.loadmat(fullname, info_dict)
M = info_dict['multiscale_microenvironment']
print('plot_substrate: field_idx=',field_idx)
f = M[field_idx,:] #
print("M.shape = ",M.shape) # e.g., (6, 421875) (where 421875=75*75*75)