Commit b0440f6a authored by GZhao's avatar GZhao
Browse files

update dataset api

parent ab27b36f
Pipeline #8276 passed with stage
in 0 seconds
......@@ -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()}")
......
......@@ -5,6 +5,7 @@ expt: 100
nframe: 2
obsid: '40100000005'
rotation: 30
dataset: cpic-v01
shift:
- 0
- 0
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment