Commit b0c28c0aa115027eec5a5fe233f672142a51b2fe

Authored by Jürgen Knödlseder
1 parent cf721777

Do not write temporal model anymore.

inst/cta/src/GCTAModelBackground.cpp
... ... @@ -840,7 +840,7 @@ void GCTAModelBackground::write(GXmlElement& xml) const
840 840 src = xml.append("source");
841 841 if (spectral() != NULL) src->append(GXmlElement("spectrum"));
842 842 if (spatial() != NULL) src->append(GXmlElement("spatialModel"));
843   - if (temporal() != NULL) src->append(GXmlElement("temporalModel"));
  843 + //if (temporal() != NULL) src->append(GXmlElement("temporalModel"));
844 844 }
845 845  
846 846 // Set model type, name and optionally instruments
... ... @@ -857,18 +857,20 @@ void GCTAModelBackground::write(GXmlElement& xml) const
857 857 }
858 858  
859 859 // Write spatial model
860   - if (spatial()) {
  860 + if (spatial() != NULL) {
861 861 GXmlElement* spat = src->element("spatialModel", 0);
862 862 spatial()->write(*spat);
863 863 }
864 864  
865 865 // Write temporal model
866   - if (temporal()) {
  866 + /*
  867 + if (temporal() != NULL) {
867 868 if (dynamic_cast<GModelTemporalConst*>(temporal()) == NULL) {
868 869 GXmlElement* temp = src->element("temporalModel", 0);
869 870 temporal()->write(*temp);
870 871 }
871 872 }
  873 + */
872 874  
873 875 // Return
874 876 return;
... ...