Skip to content

Instantly share code, notes, and snippets.

@153957
Last active August 29, 2015 13:56
Show Gist options
  • Save 153957/8864873 to your computer and use it in GitHub Desktop.
Save 153957/8864873 to your computer and use it in GitHub Desktop.
Run base SAPPHiRE simulation
import tables
from sapphire.simulations.base import BaseSimulation
from sapphire.clusters import ScienceParkCluster
datafile = tables.openFile('/tmp/test_base_simulation.h5', 'w')
cluster = ScienceParkCluster()
sim = BaseSimulation(cluster, datafile, '/simulations/this_run', 10)
sim.run()
@davidfokkema
Copy link

Looks good. I think we should include this in the class docstring. Few suggestions: 'file' is a reserved keyword, and the group name is not very specific. Maybe '/simulations/this_run/' or '/group/to/store/simulation/data', or ...?

@153957
Copy link
Author

153957 commented Feb 10, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment