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

DAMD-108: Please add spectrograph to pfsDesign/pfsConfig file #65

Closed
wants to merge 2 commits into from

Conversation

PaulPrice
Copy link
Member

No description provided.

We might like to have this function in pfs_utils, but we'd also
like to avoid adding dependencies to datamodel.
This makes it easy to select data from a particular spectrograph.
Copy link
Collaborator

@RobertLuptonTheGood RobertLuptonTheGood 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, except for the question of whether these utilities (complete with magic numbers like 651) shouldn't be in pfs_utils

@@ -7,7 +7,7 @@
import numpy as np

__all__ = ("calculatePfsVisitHash", "createHash", "astropyHeaderToDict", "astropyHeaderFromDict",
"wraparoundNVisit", "inheritDocstrings",)
"wraparoundNVisit", "inheritDocstrings", "spectrographFromFiberId", "fiberHoleFromFiberId")
Copy link
Collaborator

Choose a reason for hiding this comment

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

Shouldn't these come from pfs_utils? That would add a dependency, but as you pointed out, the objects returned from datamodel may not be functional

@PaulPrice PaulPrice closed this Mar 11, 2021
@PaulPrice PaulPrice deleted the tickets/DAMD-108 branch March 11, 2021 00:00
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