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
c14b3904
Commit
c14b3904
authored
May 27, 2024
by
GZhao
Browse files
1. fix the little bug in utnittest case. 2 change data folder path to fix setup error
parent
506117a2
Pipeline
#4819
passed with stage
in 0 seconds
Changes
4
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
csst_cpic_sim/config.py
View file @
c14b3904
...
@@ -4,7 +4,7 @@ from datetime import datetime
...
@@ -4,7 +4,7 @@ from datetime import datetime
import
numpy
as
np
import
numpy
as
np
config_aim
=
os
.
path
.
dirname
(
os
.
path
.
dirname
(
__file__
)
)
config_aim
=
os
.
path
.
dirname
(
__file__
)
config_aim
=
os
.
path
.
join
(
config_aim
,
'data/refdata_path.yaml'
)
config_aim
=
os
.
path
.
join
(
config_aim
,
'data/refdata_path.yaml'
)
...
...
data/refdata_path.yaml
→
csst_cpic_sim/
data/refdata_path.yaml
View file @
c14b3904
File moved
csst_cpic_sim/io.py
View file @
c14b3904
...
@@ -506,8 +506,8 @@ def save_fits_simple(images, obs_info, output_folder='./'):
...
@@ -506,8 +506,8 @@ def save_fits_simple(images, obs_info, output_folder='./'):
header
[
'exptime'
]
=
obs_info
[
'expt'
]
header
[
'exptime'
]
=
obs_info
[
'expt'
]
header
[
'nframe'
]
=
obs_info
[
'nframe'
]
header
[
'nframe'
]
=
obs_info
[
'nframe'
]
header
[
'band'
]
=
obs_info
[
'band'
]
header
[
'band'
]
=
obs_info
[
'band'
]
header
[
'emgain'
]
=
obs_info
[
'emgain'
]
header
[
'emgain'
]
=
obs_info
.
get
(
'emgain'
,
'UNSET'
)
header
[
'emset'
]
=
obs_info
[
'emset'
]
header
[
'emset'
]
=
obs_info
.
get
(
'emset'
,
'UNSET'
)
header
[
'obsid'
]
=
obs_info
[
'obsid'
]
header
[
'obsid'
]
=
obs_info
[
'obsid'
]
header
[
'rotation'
]
=
obs_info
[
'rotation'
]
header
[
'rotation'
]
=
obs_info
[
'rotation'
]
shift
=
obs_info
[
'shift'
]
shift
=
obs_info
[
'shift'
]
...
...
tests/test_io.py
View file @
c14b3904
...
@@ -27,6 +27,7 @@ params = {
...
@@ -27,6 +27,7 @@ params = {
'nframe'
:
5
,
'nframe'
:
5
,
'band'
:
'f661'
,
'band'
:
'f661'
,
'emgain'
:
10
,
'emgain'
:
10
,
'emset'
:
10
,
'obsid'
:
'40112345678'
,
'obsid'
:
'40112345678'
,
'rotation'
:
20
,
'rotation'
:
20
,
'shift'
:
[
0
,
1
],
'shift'
:
[
0
,
1
],
...
@@ -96,6 +97,7 @@ band: "f661"
...
@@ -96,6 +97,7 @@ band: "f661"
shift: [0, 0]
shift: [0, 0]
rotation: 0
rotation: 0
emgain: 100
emgain: 100
emset: -1
skybg: 21
skybg: 21
expstart:
expstart:
...
...
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