sdss / lvmdatasimulator

Simulator of LVM data for testing DRP and DAP
BSD 3-Clause "New" or "Revised" License
6 stars 0 forks source link

Problem with Tutorial #3 #48

Closed kslong closed 2 years ago

kslong commented 2 years ago

The last major step in tutorial 3 is failing because it is not finding the fits files that were created earlier.

A quick fix is as follows, but it's probably not what one would like

print(name)
print(f"{name}_6550_6570_input_map.fits")
x=name+'/'
print(x)
fig = plt.figure(figsize=(18, 14))
with fits.open(x+f"{name}_6550_6570_input_map.fits") as hdu:
    ha_input = hdu[0].data
with fits.open(x+f"{name}_6715_6732_input_map.fits") as hdu:
    s2_input = hdu[0].data
with fits.open(x+f"{name}_5000_5010_input_map.fits") as hdu:
    o3_input = hdu[0].data
with fits.open(x+f"{name}_4855_4865_input_map.fits") as hdu:
    hb_input = hdu[0].data

The rest of the code seems fine.

cloud182 commented 2 years ago

Hi, thanks for pointing this out. We just missed that piece of code when updating the tutorial to match the new naming convention. Now everything should work.

Enrico