sergiohcdna / ctadmtool

Analysis scripts for DM cluster searches
Other
1 stars 3 forks source link

Improve the creation of models #2

Closed sergiohcdna closed 3 years ago

sergiohcdna commented 3 years ago

Avoid to use GXmlElement when creating spectral and spatial models.

sergiohcdna commented 3 years ago

Checking documentation from http://cta.irap.omp.eu/ctools-devel/users/tutorials/howto/howto_model_handling_python.html

sergiohcdna commented 3 years ago

Changes in createmodels

First I change the methods in classes dm_spectral, dm_pointsource y dm_extended to call for GModelSpectralFunc, GModelSpatialPointSource and GModelSpatialDiffuseMap

I added just some checks when freeing parameters or request calculation of TS

sergiohcdna commented 3 years ago

Update the notebooks and the csdmatter script to include the changes in the createmodels classes