From b0c28c0aa115027eec5a5fe233f672142a51b2fe Mon Sep 17 00:00:00 2001 From: Jürgen Knödlseder Date: Mon, 6 Jan 2014 23:04:19 +0100 Subject: [PATCH] Do not write temporal model anymore. --- inst/cta/src/GCTAModelBackground.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/inst/cta/src/GCTAModelBackground.cpp b/inst/cta/src/GCTAModelBackground.cpp index 4447a8d..d9457f7 100644 --- a/inst/cta/src/GCTAModelBackground.cpp +++ b/inst/cta/src/GCTAModelBackground.cpp @@ -840,7 +840,7 @@ void GCTAModelBackground::write(GXmlElement& xml) const src = xml.append("source"); if (spectral() != NULL) src->append(GXmlElement("spectrum")); if (spatial() != NULL) src->append(GXmlElement("spatialModel")); - if (temporal() != NULL) src->append(GXmlElement("temporalModel")); + //if (temporal() != NULL) src->append(GXmlElement("temporalModel")); } // Set model type, name and optionally instruments @@ -857,18 +857,20 @@ void GCTAModelBackground::write(GXmlElement& xml) const } // Write spatial model - if (spatial()) { + if (spatial() != NULL) { GXmlElement* spat = src->element("spatialModel", 0); spatial()->write(*spat); } // Write temporal model - if (temporal()) { + /* + if (temporal() != NULL) { if (dynamic_cast(temporal()) == NULL) { GXmlElement* temp = src->element("temporalModel", 0); temporal()->write(*temp); } } + */ // Return return; -- libgit2 0.21.4