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

add select_targetids optional input to results.read_zscan #289

Merged
merged 2 commits into from Apr 1, 2024

Conversation

moustakas
Copy link
Member

@sbailey this should be a non-controversial change, but it's needed as part of the Y3 template work.

@coveralls
Copy link

coveralls commented Mar 29, 2024

Coverage Status

coverage: 38.345% (+0.03%) from 38.32%
when pulling d260c5a on read-zscan-select_targetids
into de0d1f9 on main.

Copy link
Collaborator

@sbailey sbailey 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, but I put a question inline about a potentially leftover debugging change.

@@ -104,14 +108,22 @@ def read_zscan(filename):
- zwarn: 0=good, non-0 is a warning flag

"""
def encode_column(c):
return c.astype((str, c.dtype.itemsize))
Copy link
Collaborator

Choose a reason for hiding this comment

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

Is this a debugging leftover? Why is this function here, replacing the one imported via from .utils import encode_column. If we specifically need it here, please also copy the docstring.

Copy link
Member Author

Choose a reason for hiding this comment

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

I honestly have no idea why I put this here (which was some time ago...). I'll remove it for this PR but if I figure out why I tripped on it in the first place I'll follow up!

@moustakas moustakas merged commit c30c913 into main Apr 1, 2024
12 checks passed
@moustakas moustakas deleted the read-zscan-select_targetids branch April 1, 2024 18:28
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.

None yet

3 participants