Skip to content

Instantly share code, notes, and snippets.

@ShaneDrury
Created May 29, 2014 15:46
Show Gist options
  • Save ShaneDrury/aa7cd65dbf9aceea192e to your computer and use it in GitHub Desktop.
Save ShaneDrury/aa7cd65dbf9aceea192e to your computer and use it in GitHub Desktop.
Decorators for Simulation Idea
my_sim = Simulation(simulation_args)
@my_sim.register_measurement(measurement_args)
def my_measurement(args):
do_stuff(args)
if __name__ == '__main__':
my_sim.run()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment