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
Wu Jin
CSST simulation
Commits
79d90a4e
Commit
79d90a4e
authored
Mar 11, 2022
by
Fang Yuedong
Browse files
bug fixed
parent
fa4b5648
Changes
1
Hide whitespace changes
Inline
Side-by-side
Catalog/C3Catalog.py
View file @
79d90a4e
...
...
@@ -32,9 +32,9 @@ class C3Catalog(CatalogBase):
# self.normF_star = Table.read(os.path.join(self.normalize_dir, 'SLOAN_SDSS.g.fits'))
# self.normF_galaxy = Table.read(os.path.join(self.normalize_dir, 'lsst_throuput_g.fits'))
with
pkg_resources
.
path
(
'Catalog.data'
,
'SLOAN_SDSS.g.fits'
)
as
filter_path
:
self
.
normF_star
=
str
(
filter_path
)
self
.
normF_star
=
Table
.
read
(
str
(
filter_path
)
)
with
pkg_resources
.
path
(
'Catalog.data'
,
'lsst_throuput_g.fits'
)
as
filter_path
:
self
.
normF_
star
=
str
(
filter_path
)
self
.
normF_
galaxy
=
Table
.
read
(
str
(
filter_path
)
)
self
.
config
=
config
self
.
chip
=
chip
...
...
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