guaix-ucm / megaradrp

MEGARA (Multi-Espectrógrafo en GTC de Alta Resolución para Astronomía) is a facility instrument designed for the 10.4m GTC telescope in La Palma (Spain).
https://guaix.fis.ucm.es/megara/
GNU General Public License v3.0
12 stars 6 forks source link

Support Astropy 4 #274

Closed sergiopasra closed 4 years ago

sergiopasra commented 4 years ago

Tracking astropy 4 changes

astropy 4 has deprecated the following method of building models:

Model1 = Model2 +  Model3

We have to add class instances instead

model2 = Model2()
model3 = Model3()

model1 = model2 + model3