Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
sas_temper
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Heller, William T.
sas_temper
Merge requests
!8
Create executable script
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Create executable script
create_bin
into
master
Overview
0
Commits
1
Pipelines
0
Changes
4
Merged
Doucet, Mathieu
requested to merge
create_bin
into
master
4 years ago
Overview
0
Commits
1
Pipelines
0
Changes
4
Expand
Fixes #13
0
0
Merge request reports
Compare
master
master (base)
and
latest version
latest version
b0939540
1 commit,
4 years ago
4 files
+
35
−
21
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
4
Search (e.g. *.vue) (Ctrl+P)
sas_temper
/__main__.py
→
scripts/
sas_temper
+
7
−
6
Options
#!/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