hughesadam87 / PAME

Personal programs for fiber optic nanobiosensing simulations.
Other
5 stars 5 forks source link

Sharing specparms is an issue #23

Open hughesadam87 opened 9 years ago

hughesadam87 commented 9 years ago

Looks like objects attached to specparms will not be deleted. One example is go into material mixer of composite material, change the material_mixer style from MG_mod to linearsum and maybe brugemann. Then put a print statemetn in "update-mix" for all of these. When go ahead and update wavelengths, even though only have MG_Mod selected, get somethign like this:

 in mgmod update mix
 in linear sum update mix
 in mgmod update mix
UPDATING INTERP Nanometers Nanometers  #<--- JC Gold
Had to reverse values in material_files.update_interp()

 in mgmod update mix
 in linear sum update mix
 in mgmod update mix

I think this means that each time a material changed, an update_mix was triggered as it should be, but then it triggered for all the update mix styles that were done. These are stored in separate classes, self.Mix(). Why aren't they being removed?