Skip to content
Snippets Groups Projects

Create executable script

Merged Doucet, Mathieu requested to merge create_bin into master
4 files
+ 35
21
Compare changes
  • Side-by-side
  • Inline
Files
4
#!/usr/bin/env python
r"""
sas_temper
__main__.py: this is where the action happens
__main__.py: this is where the action happens
Oak Ridge National Laboratory, 2020
@@ -28,7 +29,7 @@ import sas_temper.sas_data as sas_data
# see if the program has been called correctly
if len(sys.argv) < 2:
raise Exception("No configuration file was specified")
# parse the configuration file for the parameters
#modelConf = modelconfig.ModelConfig()
#sasTemperConf = sa_config.SAConfiguration()
@@ -43,14 +44,14 @@ models = np.empty(sasTemperConf.models, "object")
models_usm = np.empty(sasTemperConf.models, "object")
# seed the random number generator
np.random.seed(int(tm.time()) + int(os.getpid()))
np.random.seed(int(tm.time()) + int(os.getpid()))
# this loop creates the set of models
for i in range(0,sasTemperConf.models):
results[i], models[i], models_usm[i] = engine.sa_control(sasTemperConf,modelConf,experimentalData)
#output the results of the single fitting
output.outputSingleRes(sasTemperConf, experimentalData, models[i], i, results[i])
# and output the analysis of the set of models found
output.outputSetRes(sasTemperConf, results)
\ No newline at end of file
output.outputSetRes(sasTemperConf, results)
Loading