File ~/oimUtils.py:679, in getWlFromOifits(oifits, arr, extver, returnBand)
676 else:
677 TypeError(f"No extver in {arr}")
--> 679 insname=arr.header['INSNAME']
681 oiwls = np.array([di for di in oifits if di.name == "OI_WAVELENGTH"])
682 oiwls_insname = np.array([oiwli.header['INSNAME'] for oiwli in oiwls])
AttributeError: 'str' object has no attribute 'header'`
Example data (Published result in JMMC archive) 2013-02-16_SCI_HD100453_oiDataCalib.fits.zip
After loading + filter data:
data_pio_only.dataInfo
Output:
fig, ax1 = plt.subplots(1,1, subplot_kw=dict(projection='oimAxes'),figsize=(8,8))
ax1.uvplot(data_pio_only)
plt.show()
Errorcode: