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
eec9ba83
Commit
eec9ba83
authored
Apr 19, 2024
by
Fang Yuedong
Browse files
remove pkg_resources warning
parent
24aa9eb9
Changes
1
Hide whitespace changes
Inline
Side-by-side
run_sim.py
View file @
eec9ba83
from
ObservationSim.ObservationSim
import
Observation
from
ObservationSim.ObservationSim
import
Observation
from
ObservationSim._util
import
parse_args
,
make_run_dirs
,
generate_pointing_list
from
ObservationSim._util
import
parse_args
,
make_run_dirs
,
generate_pointing_list
from
pkg_resources
import
get_distribut
ion
from
importlib.metadata
import
vers
ion
import
os
import
os
import
yaml
import
yaml
import
shutil
import
shutil
...
@@ -24,7 +24,7 @@ def run_sim():
...
@@ -24,7 +24,7 @@ def run_sim():
None
None
"""
"""
# Get version of CSSTSim Package
# Get version of CSSTSim Package
__version__
=
get_distribut
ion
(
"CSSTSim"
)
.
version
__version__
=
vers
ion
(
"CSSTSim"
)
# Get run datetime
# Get run datetime
now
=
datetime
.
datetime
.
now
()
now
=
datetime
.
datetime
.
now
()
...
...
Fang Yuedong
@fangyuedong
mentioned in issue
#16 (closed)
·
Apr 18, 2024
mentioned in issue
#16 (closed)
mentioned in issue #16
Toggle commit list
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