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

DM-31619: Fully incorporate SSP object association in DiaPipe #22

Merged
merged 1 commit into from Oct 11, 2021

Conversation

morriscb
Copy link
Contributor

@morriscb morriscb commented Oct 8, 2021

Add htm skip for SolarSystem associated DiaSources

Modify test to start with 1 indexed ids for DiaObjects.

Comment on lines 781 to 784
if diaObjId == 0:
continue
else:
htm_index[i] = pixel_id_map[diaObjId]
Copy link
Collaborator

Choose a reason for hiding this comment

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

Looks good, maybe a slightly faster way to do it is to set pixel_id_map[0] = 0, then you don't need to check every diaObjId for 0.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sorry, how do I know if it's a DiaSource I shouldn't touch?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ah, got ya now. I'll put the change in.

Copy link
Collaborator

@andy-slac andy-slac left a comment

Choose a reason for hiding this comment

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

Looks good!

Modify test to start with 1 indexed ids for DiaObjects.

Add DiaObject id=0 to pixel map.
@morriscb morriscb merged commit 2c3f5ac into master Oct 11, 2021
@morriscb morriscb deleted the tickets/DM-31619 branch October 11, 2021 18:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants