[AstroPy] Remove a model from a composite model in astropy.modeling

Eric Emsellem eric.emsellem at eso.org
Fri Aug 21 06:32:11 EDT 2015


I would like to know if something like this is possible with 
Let's imagine I have a composite model made of 3 models, e.g.,

 > modelC = model1 + model2 + model3

where each model1, model2, model3 is a custom model or one of the 
integrated ones in astropy.modeling.models.

Can I do something which would be equivalent to:

 > modelC.remove(model2)

where now modelC would be  : model1 + model3


Thanks for any tips on this one!


More information about the AstroPy mailing list