Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
plotter-nse
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
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
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
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
数学の武士
plotter-nse
Merge requests
!1
Added transpose argument to plots/contour/ani_stuff
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Added transpose argument to plots/contour/ani_stuff
implement_transpouse_plots
into
main
Overview
0
Commits
1
Pipelines
0
Changes
3
Merged
Debolskiy Andrey
requested to merge
implement_transpouse_plots
into
main
1 year ago
Overview
0
Commits
1
Pipelines
0
Changes
3
Expand
0
0
Merge request reports
Viewing commit
7d8f066d
Show latest version
3 files
+
58
−
26
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
3
Search (e.g. *.vue) (Ctrl+P)
7d8f066d
Added transpose argument to plots/contour/ani_stuff
· 7d8f066d
Debolskiy Andrey
authored
1 year ago
plotter/Args.py
+
6
−
1
Options
import
sys
import
numpy
as
np
class
Args
:
def
__init__
(
self
,
filename
,
func
,
var
=
None
,
mval
=
None
,
oname
=
None
,
out
=
None
,
ndim
=
None
,
min_y
=
None
,
max_y
=
None
,
title
=
None
):
def
__init__
(
self
,
filename
,
func
,
var
=
None
,
mval
=
None
,
oname
=
None
,
out
=
None
,
ndim
=
None
,
min_y
=
None
,
max_y
=
None
,
title
=
None
,
transpose
=
None
):
if
out
==
"
plotter_lib_pngs/
"
:
print
(
"
Output directory name can
'
t be equal to
"
+
out
)
sys
.
exit
(
-
1
)
@@ -16,6 +16,7 @@ class Args:
self
.
title
=
title
self
.
min_y
=
min_y
self
.
max_y
=
max_y
self
.
transpose
=
transpose
self
.
CorrVals
()
@@ -45,6 +46,10 @@ class Args:
if
None
in
self
.
max_y
:
self
.
max_y
=
None
if
type
(
self
.
transpose
)
is
not
list
:
self
.
transpose
=
[
self
.
transpose
]
if
None
in
self
.
transpose
:
self
.
transpose
=
None
# param_lists = [self.oname, self.var, self.mval, self.min_y, self.max_y]
# lens = []
Loading