Chandra-MARX / marxs

Multi-Architecture-Raytrace-Xraymission-Simulator
http://marxs.readthedocs.io/en/latest/
GNU General Public License v3.0
6 stars 9 forks source link

Stacks should share the geometry objects #212

Open hamogu opened 5 years ago

hamogu commented 5 years ago

Elements in a stack should share the same geometry object. I've come across user code (written by me, but outside of MARXS) where I tweaked the geometry object of a stack, but the change did not propagate down to the objects that make up a stack. I'm not sure how to solve this. It's pretty easy if I just want to work with updates of the existing geometry object. In that case, the objects in the stack can just point all to that object. However, if the geometry object that the stack owns is replaced wit ha new one, how do I update all the other references?

Related to #118 which suggests relative geometry expressions.