PetroFit / petrofit

Python package for calculating Petrosian properties and fitting galaxy light profiles
https://petrofit.readthedocs.io
28 stars 7 forks source link

`plot_apertures` ValueError #179

Closed robelgeda closed 1 year ago

robelgeda commented 1 year ago

ValueError Traceback (most recent call last) Cell In [138], line 1 ----> 1 pf.plot_apertures(image=rdata, apertures=ap_list, vmin=vmin, vmax=vmax, color='white', lw=1.5)

File ~/miniconda3/envs/hmxb/lib/python3.10/site-packages/petrofit/photometry.py:51, in plot_apertures(image, apertures, vmin, vmax, color, lw) 48 for aperture in apertures: 49 aperture.plot(axes=plt.gca(), color=color, lw=lw) ---> 51 if image or apertures: 52 plt.title('Apertures')

ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()