Bug #1092

Write out run ids in GCTAModelBackground

Added by Buehler Rolf about 10 years ago. Updated about 10 years ago.

Status:ClosedStart date:01/21/2014
Priority:NormalDue date:
Assigned To:Knödlseder Jürgen% Done:

100%

Category:-
Target version:00-08-01
Duration:

Description

Run ids are not written out to the output XML in the write method of GCTAModelBackground. To fix this the following line needs to be added to GCTAModelBackground.cpp after line 848:

src→attribute(“ids",ids());


Recurrence

No recurrence.

History

#1 Updated by Knödlseder Jürgen about 10 years ago

  • Status changed from New to In Progress
  • Assigned To set to Knödlseder Jürgen
  • Target version set to 00-08-01
  • % Done changed from 0 to 90

Code changed as advised. Still needs checking.

#2 Updated by Knödlseder Jürgen about 10 years ago

Rolf, the code is in devel now, can you check if the issue is solved?

#3 Updated by Buehler Rolf about 10 years ago

Juergen, writing the ids works, but Michi noticed that the reader needs a minor change too. For this line 806 in GCTAModelBackground.cpp needs to be changed from:

ids(xml.attribute(“id”));

to

ids(xml.attribute(“ids”));

After this the reading and writing loop works now. (Sorry I didnt check this the first time. By the way, we may consider to add the reading and writing of the ids into the base class GModelData, as it will probably be needed for all derived classes).

#4 Updated by Knödlseder Jürgen about 10 years ago

  • Subject changed from Writte out run ids in GCTAModelBackground to Write out run ids in GCTAModelBackground

#5 Updated by Knödlseder Jürgen about 10 years ago

Oh, I did not really check this. I guess we want to have id as attribute name to be consistent with the attribute in the observation definition file, although the id field may contain several identifiers.

I noticed that GModelSky does not write-out id either.

And finally, the id writing should be optional (similar to the instrument attribute).

Will change accordingly and check.

#6 Updated by Knödlseder Jürgen about 10 years ago

  • Status changed from In Progress to Feedback
  • % Done changed from 90 to 100

Corrected, tested and merged into devel.

#7 Updated by Knödlseder Jürgen about 10 years ago

  • Status changed from Feedback to Closed

Also available in: Atom PDF