Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
LAMBERT Jean-charles
uns_projects
Commits
2ca5dafa
Commit
2ca5dafa
authored
Jun 27, 2017
by
LAMBERT Jean-charles
Browse files
2dplot in progress
parent
c8f46758
Changes
1
Hide whitespace changes
Inline
Side-by-side
py/mains/uns_2dplot.py
View file @
2ca5dafa
...
...
@@ -41,13 +41,15 @@ def commandLine():
# process, is the core function
def
process
(
args
):
try
:
cpt
=
0
uns
=
CSnapshot
(
args
.
snapshot
,
args
.
component
,
verbose_debug
=
args
.
verbose
)
ok
=
uns
.
nextFrame
(
""
)
if
ok
:
#
ok=uns.nextFrame("")
while
(
uns
.
nextFrame
(
""
))
:
c
=
C2dplot
(
verbose_debug
=
args
.
verbose
)
c
.
fullProcess
(
uns
=
uns
,
out
=
args
.
out
,
component
=
args
.
component
,
xrange
=
int
(
args
.
range
),
sigma
=
args
.
sigma
,
mergers
=
args
.
mergers
,
cmap
=
args
.
cmap
)
else
:
print
(
"[%s] is not a UNS snapshot ..."
%
(
simname
))
c
.
fullProcess
(
uns
=
uns
,
out
=
args
.
out
,
component
=
args
.
component
,
xrange
=
int
(
args
.
range
),
sigma
=
args
.
sigma
,
mergers
=
args
.
mergers
,
cmap
=
args
.
cmap
,
cpt
=
cpt
)
cpt
=
cpt
+
1
# else:
# print ("[%s] is not a UNS snapshot ..."%(simname))
except
Exception
as
x
:
print
(
x
.
message
,
file
=
sys
.
stderr
)
except
KeyboardInterrupt
:
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment