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_msc_sim
Commits
8aec5506
Commit
8aec5506
authored
Dec 14, 2023
by
Fang Yuedong
Browse files
remove redundant dir making
parent
3ed9b904
Changes
1
Hide whitespace changes
Inline
Side-by-side
ObservationSim/_util.py
View file @
8aec5506
...
...
@@ -97,14 +97,14 @@ def make_run_dirs(work_dir, run_name, pointing_list):
except
OSError
:
pass
prefix
=
"MSC_"
for
pointing
in
pointing_list
:
fname
=
prefix
+
str
(
pointing
.
id
).
rjust
(
7
,
'0'
)
subImgDir
=
os
.
path
.
join
(
imgDir
,
fname
)
if
not
os
.
path
.
exists
(
subImgDir
):
try
:
os
.
makedirs
(
subImgDir
,
exist_ok
=
True
)
except
OSError
:
pass
#
for pointing in pointing_list:
#
fname=prefix + str(pointing.id).rjust(7, '0')
#
subImgDir = os.path.join(imgDir, fname)
#
if not os.path.exists(subImgDir):
#
try:
#
os.makedirs(subImgDir, exist_ok=True)
#
except OSError:
#
pass
return
imgDir
def
imgName
(
tt
=
0
):
...
...
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