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
32d42b06
Commit
32d42b06
authored
1 year ago
by
Wuttke, Joachim
Browse files
Options
Downloads
Patches
Plain Diff
rm unused global bp.do_plot
parent
503bc27b
No related branches found
No related tags found
1 merge request
!1702
rm NOPLOT from CI script (why there just for mac_x64?)
Pipeline
#102836
passed
1 year ago
Stage: build
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Examples/varia/AccessingSimulationResults.py
+0
-3
0 additions, 3 deletions
Examples/varia/AccessingSimulationResults.py
Wrap/Python/ba_plot.py
+0
-9
0 additions, 9 deletions
Wrap/Python/ba_plot.py
with
0 additions
and
12 deletions
Examples/varia/AccessingSimulationResults.py
+
0
−
3
View file @
32d42b06
...
...
@@ -131,9 +131,6 @@ if __name__ == '__main__':
field
=
result
.
extracted_field
()
print
(
datetime
.
datetime
.
now
().
time
(),
"
Plot
"
,
flush
=
True
)
plot
(
field
)
if
not
bp
.
do_plot
:
print
(
datetime
.
datetime
.
now
().
time
(),
"
Won
'
t show
"
,
flush
=
True
)
exit
(
0
)
print
(
datetime
.
datetime
.
now
().
time
(),
"
Show
"
,
flush
=
True
)
bp
.
show_or_export
()
print
(
datetime
.
datetime
.
now
().
time
(),
"
Done
"
,
flush
=
True
)
This diff is collapsed.
Click to expand it.
Wrap/Python/ba_plot.py
+
0
−
9
View file @
32d42b06
...
...
@@ -44,7 +44,6 @@ def env_to_bool(varname):
# default values from environment variables
cmap_default
=
os
.
environ
[
'
CMAP
'
]
if
'
CMAP
'
in
os
.
environ
else
'
inferno
'
usetex_default
=
env_to_bool
(
'
USETEX
'
)
doplot_default
=
not
env_to_bool
(
'
NOPLOT
'
)
label_fontsize
=
16
# rc('font', **{'family': 'sans-serif', 'sans-serif': ['Helvetica']})
...
...
@@ -406,8 +405,6 @@ def parse_args(**kwargs):
raise
Exception
(
"
Parameter
'
datfile
'
must contain no suffix (we will append .int.gz)
"
)
global
do_plot
do_plot
=
doplot_default
or
not
datfile
global
figfile
figfile
=
plotargs
.
pop
(
'
figfile
'
,
None
)
...
...
@@ -440,8 +437,6 @@ def plot_simulation_result(result):
"""
if
datfile
:
ba
.
writeDatafield
(
result
,
datfile
+
"
.int.gz
"
)
if
not
do_plot
:
return
if
len
(
result
.
array
().
shape
)
==
1
:
# 1D data => assume specular simulation
...
...
@@ -466,8 +461,6 @@ def make_plot(results, ncol):
"""
if
datfile
:
save_results
(
results
,
datfile
)
if
not
do_plot
:
return
multiPlot
=
MultiPlot
(
len
(
results
),
ncol
,
plotargs
.
pop
(
'
fontsize
'
,
None
))
...
...
@@ -509,8 +502,6 @@ def plot_multicurve(results, xlabel, ylabel):
"""
if
datfile
:
save_results
(
results
,
datfile
)
if
not
do_plot
:
return
legend
=
[]
for
result
in
results
:
...
...
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