Closed yt-fido closed 7 years ago
Original comment by Nathan Goldbaum (Bitbucket: ngoldbaum, GitHub: ngoldbaum):
Also worth noting that a workaround is to keep the datasets in memory. The following variation on the script in the issue description will run without crashing:
#!python
import yt
profiles = []
ds_list = []
basename = "Sedov_3d/sedov_hdf5_chk"
for i in [0, 1]:
filename = "{0}_{1:04d}".format(basename, i)
ds = yt.load(filename)
ds_list.append(ds)
sphere = ds.sphere([0., 0., 0.], (1, 'cm'))
profile = yt.create_profile(sphere, "radius", ["radial_velocity_absolute"],
logs = {"radius": False, "radial_velocity_absolute": False}
)
profiles.append(profile)
plot = yt.ProfilePlot.from_profiles(profiles)
plot.set_log("radial_velocity_absolute", False)
plot.save()
Originally reported by: Miguel de Val-Borro (Bitbucket: migueldvb, GitHub: migueldvb)
Axis scaling manipulation using the set_log() function does not work for multiple 1d profiles created using yt.create_profile
The traceback error obtained from this script is shown below: