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
4f32a363
Commit
4f32a363
authored
Apr 19, 2024
by
Fang Yuedong
Browse files
typo fixes
parent
4d09f12a
Changes
2
Show whitespace changes
Inline
Side-by-side
Catalog/Catalog_example.py
View file @
4f32a363
...
@@ -53,7 +53,7 @@ class Catalog(CatalogBase):
...
@@ -53,7 +53,7 @@ class Catalog(CatalogBase):
super
().
__init__
()
super
().
__init__
()
self
.
cat_dir
=
os
.
path
.
join
(
config
[
"data_dir"
],
config
[
"catalog_options"
][
"input_path"
][
"cat_dir"
])
self
.
cat_dir
=
os
.
path
.
join
(
config
[
"data_dir"
],
config
[
"catalog_options"
][
"input_path"
][
"cat_dir"
])
self
.
chip
=
chip
self
.
chip
=
chip
if
"star_cat"
in
config
[
"catalog_options"
][
"input_path"
]
and
config
[
"catalog_options"
][
"input_path"
][
"star_cat"
]
if
"star_cat"
in
config
[
"catalog_options"
][
"input_path"
]
and
config
[
"catalog_options"
][
"input_path"
][
"star_cat"
]
:
star_file
=
config
[
"catalog_options"
][
"input_path"
][
"star_cat"
]
star_file
=
config
[
"catalog_options"
][
"input_path"
][
"star_cat"
]
star_SED_file
=
config
[
"catalog_options"
][
"SED_templates_path"
][
"star_SED"
]
star_SED_file
=
config
[
"catalog_options"
][
"SED_templates_path"
][
"star_SED"
]
self
.
star_path
=
os
.
path
.
join
(
self
.
cat_dir
,
star_file
)
self
.
star_path
=
os
.
path
.
join
(
self
.
cat_dir
,
star_file
)
...
...
ObservationSim/MockObject/FlatLED.py
View file @
4f32a363
...
@@ -52,7 +52,7 @@ fluxLED = {'LED1': 15, 'LED2': 15, 'LED3': 12.5, 'LED4': 9, 'LED5': 9,
...
@@ -52,7 +52,7 @@ fluxLED = {'LED1': 15, 'LED2': 15, 'LED3': 12.5, 'LED4': 9, 'LED5': 9,
mirro_eff
=
{
'GU'
:
0.61
,
'GV'
:
0.8
,
'GI'
:
0.8
}
mirro_eff
=
{
'GU'
:
0.61
,
'GV'
:
0.8
,
'GI'
:
0.8
}
# mirro_eff = {'GU':1, 'GV':1, 'GI':1}
# mirro_eff = {'GU':1, 'GV':1, 'GI':1}
class
FlatLED
(
o
bject
):
class
FlatLED
(
MockO
bject
):
def
__init__
(
self
,
chip
,
filt
,
flatDir
=
None
,
logger
=
None
):
def
__init__
(
self
,
chip
,
filt
,
flatDir
=
None
,
logger
=
None
):
# self.led_type_list = led_type_list
# self.led_type_list = led_type_list
self
.
filt
=
filt
self
.
filt
=
filt
...
@@ -426,7 +426,7 @@ class FlatLED(object):
...
@@ -426,7 +426,7 @@ class FlatLED(object):
print
(
'time: %s ms'
%
((
T2
-
T1
)
*
1000
))
print
(
'time: %s ms'
%
((
T2
-
T1
)
*
1000
))
if
isAlongY
==
1
:
if
isAlongY
==
1
:
fimg
,
tmx
,
tmy
=
rotate90
(
array_orig
=
fImg
.
array
,
xc
=
0
,
yc
=
0
,
isClockwise
=
0
)
fimg
,
tmx
,
tmy
=
SpecDisperser
.
rotate90
(
array_orig
=
fImg
.
array
,
xc
=
0
,
yc
=
0
,
isClockwise
=
0
)
else
:
else
:
fimg
=
fImg
.
array
fimg
=
fImg
.
array
...
...
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