Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

U/jrbogart/remove sncosmo #105

Merged
merged 5 commits into from
Jun 18, 2024
Merged

U/jrbogart/remove sncosmo #105

merged 5 commits into from
Jun 18, 2024

Conversation

JoanneBogart
Copy link
Collaborator

Remove support for sncosmo object type. Includes removal of sncosmo dependency.
Allow sky catalogs pointsource files to have more than one row group of stars.

Copy link
Collaborator

@jchiang87 jchiang87 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks ok, but it's hard to judge reliability without code that tests the new pointsource catalogs with multiple row groups. I don't recall, have you already created catalog files with this code?

@@ -295,12 +295,16 @@ def __init__(self, parts, area_partition=None, skycatalog_root=None,
_cosmo_cat = 'cosmodc2_v1.1.4_image_addon_knots'
_diffsky_cat = 'roman_rubin_2023_v1.1.2_elais'
_star_db = '/global/cfs/cdirs/lsst/groups/SSim/DC2/dc2_stellar_healpixel.db'
_sn_db = '/global/cfs/cdirs/lsst/groups/SSim/DC2/cosmoDC2_v1.1.4/sne_cosmoDC2_v1.1.4_MS_DDF_healpix.db'
# _sn_db = '/global/cfs/cdirs/lsst/groups/SSim/DC2/cosmoDC2_v1.1.4/sne_cosmoDC2_v1.1.4_MS_DDF_healpix.db'
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It seems like this line should just be deleted.

Comment on lines 329 to 331
# self._sn_truth = sn_truth
# if self._sn_truth is None:
# self._sn_truth = _sn_db
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just delete?

@JoanneBogart
Copy link
Collaborator Author

I'll get rid of the unneeded commented-out lines before merging.
I have tested multiple row groups by setting the stride to a low value, making a star main file (which had multiple row groups), then a star flux file, and verifying that all expected sources were included in both. A CI test would of course be better. More generally I need to add reduced inputs for stars and galaxies to the CI sample data so that catalog creation can be tested by the CI.

@JoanneBogart JoanneBogart merged commit 8fbf071 into main Jun 18, 2024
1 check passed
@JoanneBogart JoanneBogart deleted the u/jrbogart/remove_sncosmo branch June 18, 2024 18:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants