Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
ackley_mc
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Torda, Prof. Dr. Andrew Ernest
ackley_mc
Commits
470e32ce
Commit
470e32ce
authored
3 years ago
by
Andrew E. Torda
Browse files
Options
Downloads
Patches
Plain Diff
Do not print out temperature axis if we are not cooling.
parent
c0b1771e
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
ackwork/ackwork_test.go
+3
-2
3 additions, 2 deletions
ackwork/ackwork_test.go
ackwork/plot.go
+7
-5
7 additions, 5 deletions
ackwork/plot.go
with
10 additions
and
7 deletions
ackwork/ackwork_test.go
+
3
−
2
View file @
470e32ce
...
...
@@ -63,11 +63,12 @@ n_step 100000`, "phasetrans"},
// add OutNames uses the basename field and makes output names for
// the value and x trajectory plot files and the csv file
func
addOutNames
(
s
gentest
)
string
{
a
:=
[]
string
{
"xPltName"
,
"fPltName"
,
"fOutName"
}
//
a :=
ret
:=
s
.
params
for
_
,
ss
:=
range
a
{
for
_
,
ss
:=
range
[]
string
{
"xPltName"
,
"fOutName"
}
{
ret
+=
"
\n
"
+
ss
+
" "
+
s
.
basename
}
ret
+=
"
\n
fPltName"
+
" "
+
s
.
basename
+
"_fval"
return
ret
+
"
\n
"
}
func
Test1
(
t
*
testing
.
T
)
{
...
...
This diff is collapsed.
Click to expand it.
ackwork/plot.go
+
7
−
5
View file @
470e32ce
...
...
@@ -79,12 +79,14 @@ func plotfWrt(cprm *cprm, fname string) error {
AxisType
:
chart
.
YAxisSecondary
,
Range
:
&
range2
{},
}
tmprtrAxis
:=
chart
.
YAxis
{
var
tmprtrAxis
chart
.
YAxis
if
cprm
.
coolme
{
// If we are not cooling, we do not plot
tmprtrAxis
=
chart
.
YAxis
{
// the temperature axis.
Name
:
"temperature"
,
NameStyle
:
chart
.
Style
{
TextRotationDegrees
:
360
},
Range
:
&
range2
{},
}
}
graph
:=
chart
.
Chart
{
Width
:
800
,
...
...
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