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
b0440f6a
Commit
b0440f6a
authored
May 09, 2025
by
GZhao
Browse files
update dataset api
parent
ab27b36f
Pipeline
#8276
passed with stage
in 0 seconds
Changes
2
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
csst_cpic_sim/main.py
View file @
b0440f6a
...
...
@@ -371,6 +371,7 @@ def observation_simulation_from_config(obs_file, config_file):
time
=
obs_info
.
get
(
'time'
,
0
)
emgain
=
obs_info
.
get
(
'emgain'
,
None
)
time
=
relative_time
(
time
)
dataset
=
obs_info
.
get
(
'dataset'
,
'default'
)
except
Exception
as
e
:
log
.
error
(
f
"
{
file
}
is not a valid yaml file."
)
...
...
@@ -416,6 +417,7 @@ def observation_simulation_from_config(obs_file, config_file):
output
=
output
,
nsample
=
nsample
,
csst_format
=
csst_format
,
dataset
=
dataset
,
prograss_bar
=
True
)
except
Exception
as
e
:
log
.
error
(
f
"
{
info_text
}
failed with
{
type
(
e
).
__name__
}{
e
}
.
\n\n
{
traceback
.
format_exc
()
}
"
)
...
...
example/observations/05_sci.yaml
View file @
b0440f6a
...
...
@@ -5,6 +5,7 @@ expt: 100
nframe
:
2
obsid
:
'
40100000005'
rotation
:
30
dataset
:
cpic-v01
shift
:
-
0
-
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