Skip to content
GitLab
Explore
Projects
Groups
Snippets
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
1 year ago
by
Fang Yuedong
Browse files
Options
Download
Email Patches
Plain Diff
remove redundant dir making
parent
3ed9b904
release_v3.0
current_stable_for_tests
develop
master
milky_way_extinction
new_sim
revert-914004c1
sim_scheduler
sls_psf_pca_convolve
v3.3.0
v3.2.1
v3.2.0
v3.1.0
v3.0.0
1 merge request
!22
add field distortion test
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
ObservationSim/_util.py
+8
-8
ObservationSim/_util.py
with
8 additions
and
8 deletions
+8
-8
ObservationSim/_util.py
+
8
-
8
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
):
...
...
This diff is collapsed.
Click to expand it.
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
Menu
Explore
Projects
Groups
Snippets