Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F79091917
plot_comp.py
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Sat, Aug 24, 17:24
Size
755 B
Mime Type
text/x-python
Expires
Mon, Aug 26, 17:24 (2 d)
Engine
blob
Format
Raw Data
Handle
20147056
Attached To
R4670 PySONIC (old)
plot_comp.py
View Options
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Author: Theo Lemaire
# @Date: 2017-02-13 12:41:26
# @Email: theo.lemaire@epfl.ch
# @Last Modified by: Theo Lemaire
# @Last Modified time: 2018-08-21 16:07:31
""" Compare profiles of several specific output variables of NICE simulations. """
import
sys
import
logging
from
PySONIC.utils
import
logger
,
OpenFilesDialog
,
InputError
from
PySONIC.plt
import
plotComp
# Set logging level
logger
.
setLevel
(
logging
.
INFO
)
# Select data files
pkl_filepaths
,
_
=
OpenFilesDialog
(
'pkl'
)
if
not
pkl_filepaths
:
logger
.
error
(
'No input file'
)
sys
.
exit
(
1
)
nfiles
=
len
(
pkl_filepaths
)
# Comparative plot
try
:
plotComp
(
'Qm'
,
pkl_filepaths
)
except
InputError
as
err
:
logger
.
error
(
err
)
sys
.
exit
(
1
)
Event Timeline
Log In to Comment