diff --git a/scripts/cspull.py b/scripts/cspull.py index 801ec78..c5a4fd8 100755 --- a/scripts/cspull.py +++ b/scripts/cspull.py @@ -302,7 +302,7 @@ class cspull(GApplication): model_name = model.name() for k in range(model.size()): par = model[k] - if par.isfree(): + if par.is_free(): # Set parameter name name = model_name+"_"+par.name() diff --git a/scripts/cstsdist.py b/scripts/cstsdist.py index eb64f11..8cc2cea 100755 --- a/scripts/cstsdist.py +++ b/scripts/cstsdist.py @@ -477,7 +477,7 @@ class cstsdist(GApplication): model_name = model.name() for k in range(model.size()): par = model[k] - if par.isfree(): + if par.is_free(): # Set parameter name name = model_name+"_"+par.name() diff --git a/src/ctobssim/ctobssim.cpp b/src/ctobssim/ctobssim.cpp index 4c87a11..a7bc036 100644 --- a/src/ctobssim/ctobssim.cpp +++ b/src/ctobssim/ctobssim.cpp @@ -898,7 +898,7 @@ void ctobssim::simulate_background(GCTAObservation* obs, // If we have a data model that applies to CTA then simulate // events - if (model != NULL && model->isvalid("CTA", "")) { + if (model != NULL && model->is_valid("CTA", "")) { // Get simulated CTA event list. Note that this method // includes the deadtime correction.