Last active
August 29, 2015 13:56
-
-
Save 153957/8864873 to your computer and use it in GitHub Desktop.
Run base SAPPHiRE simulation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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 ...?