Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
csst-sims
csst_cpic_sim
Commits
df378c71
Commit
df378c71
authored
Apr 16, 2024
by
Chen Yili
Browse files
Update CpicImgSim/config.py
parent
487d90b2
Changes
1
Hide whitespace changes
Inline
Side-by-side
CpicImgSim/config.py
View file @
df378c71
import
os
,
yaml
import
warnings
cpism_refdata
=
'/
home/ubuntu/Downloads/cpic-img-sim-master/cpic-img-sim-master
/cpism_refdata'
cpism_refdata
=
'/
nfsdata/share/simulation-unittest/cpic_sim
/cpism_refdata
/
'
print
(
cpism_refdata
)
if
not
os
.
path
.
exists
(
cpism_refdata
):
# pragma: no cover
raise
Exception
(
"Can not find CPISM reference data."
)
os
.
environ
[
'PYSYN_CDBS'
]
=
'/
home/ubuntu/Downloads/cpic-img-sim-master/cpic-img-sim-master/trd
/grp/redcat/trds/'
os
.
environ
[
'PYSYN_CDBS'
]
=
'/
nfsdata/share/simulation-unittest/cpic_sim/starmodel
/grp/redcat/trds/'
if
not
os
.
path
.
exists
(
os
.
environ
.
get
(
'PYSYN_CDBS'
,
'/home/ubuntu/Downloads/cpic-img-sim-master/cpic-img-sim-master/trd/grp/redcat/trds/'
)):
# pragma: no cover
raise
Exception
(
"Can not find PYSYN Stellar reference data."
)
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment