Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
BornAgain
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mlz
BornAgain
Commits
23e062e9
Commit
23e062e9
authored
3 years ago
by
Wuttke, Joachim
Browse files
Options
Downloads
Patches
Plain Diff
SasPyramid4: get_simulations
parent
f9a98fe6
No related branches found
No related tags found
1 merge request
!764
continue cleanup of ff example code
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Examples/ff/SasPyramid4.py
+11
-4
11 additions, 4 deletions
Examples/ff/SasPyramid4.py
with
11 additions
and
4 deletions
Examples/ff/SasPyramid4.py
+
11
−
4
View file @
23e062e9
...
...
@@ -16,14 +16,21 @@ def get_samples():
ret
.
append
(
sample
)
return
ret
def
run
_simulations
(
npix
):
def
get
_simulations
():
ret
=
[]
for
sample
in
get_samples
():
simulation
=
std_simulations
.
sas
(
sample
,
npix
)
sim
=
std_simulations
.
sas
(
sample
,
201
)
sim
.
setInstanceName
(
sample
.
instanceName
())
ret
.
append
(
sim
)
return
ret
def
run_simulations
():
ret
=
[]
for
simulation
in
get_simulations
():
simulation
.
runSimulation
()
result
=
simulation
.
result
().
relativeToMaximum
()
ret
.
append
(
bp2
.
NamedResult
(
result
,
s
ample
.
instanceName
()))
ret
.
append
(
bp2
.
NamedResult
(
result
,
s
imulation
.
instanceName
()))
return
ret
bp2
.
make_plot_row
(
run_simulations
(
201
),
"
ff_Pyramid4
"
)
bp2
.
make_plot_row
(
run_simulations
(),
"
ff_Pyramid4
"
)
# bp.save_results(namedResults, "ff_Pyramid4")
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment