nanophotonics / nplab

Core functions and instrument scripts for the Nanophotonics lab experimental scripts
GNU General Public License v3.0
38 stars 15 forks source link

Better handling of local/global variables in Experiment class #2

Closed rwb27 closed 8 years ago

rwb27 commented 9 years ago

At the moment, the code running in an Experiment class can't "see" things imported in the top level file - only those imported into Experiment.

rwb27 commented 9 years ago

I suspect this will be tricky to solve - perhaps an easy partial solution would be to pass in locals() and globals() when the object is created?

rwb27 commented 8 years ago

The Experiment class has completely changed - I'm closing this as it's not really relevant any more.