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
fa4b5648
Commit
fa4b5648
authored
Mar 10, 2022
by
Fang Yuedong
Browse files
posixPath bug fix
parent
2f6b3ce6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Catalog/C3Catalog.py
View file @
fa4b5648
...
...
@@ -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
=
filter_path
self
.
normF_star
=
str
(
filter_path
)
with
pkg_resources
.
path
(
'Catalog.data'
,
'lsst_throuput_g.fits'
)
as
filter_path
:
self
.
normF_star
=
filter_path
self
.
normF_star
=
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