Recover a Script
It can happens that an issue in the code make it crash before the post-process step, but after the call to the htrdr-planets has been executed. In this scenario, do not panic, you don’t have to restart all the calculation ! When a script terminates, all the information are stored in a binary file within the outputs_{name} repository. The name given to that file is written in the standard output right after its creation. Otherwise, the name follows this structure:
{type of script}_{htrdrPy.Data name}_{htrdrPy.Script name}.bin
Once you located the file, in a new python code (or jupyter notebook), you can
load it with loadScript():
scriptSp = htrdr.loadScript("outputs_Sphere/reflectanceSpectrum_Sphere_Spectrum.bin")
This will load the the instance of Script that was created in the
previous example (c.f. Spectra: comparison between plan-parallel and spherical). You can now restart the
post-process:
htrdr.Postprocess(scriptSp)