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-23623: Measure crosstalk coefficients for AuxTel chip and add for use #130

Merged
merged 3 commits into from Apr 8, 2020

Conversation

plazas
Copy link
Contributor

@plazas plazas commented Mar 14, 2020

No description provided.

Copy link
Contributor

@mfisherlevine mfisherlevine left a comment

Choose a reason for hiding this comment

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

Comments given will still apply, but don't merge, as I'm going to fix that dict nightmare pending RFC-683 so that none of that unpacking will be necessary 🙂

Comment on lines 170 to 172
RuntimeError
Raised if crosstalkSources is not None and not a numpy
array or a dictionary.
Copy link
Contributor

Choose a reason for hiding this comment

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

Please combine these three lines with the explanation above, so that all the reasons for raising a RuntimeError are defined under the RuntimeError heading.

coeffs.append(tempList)
coeffs = np.array(coeffs)
else:
raise RuntimeError("crosstalkSources not of the correct type: `np.array` or `dict`")
Copy link
Contributor

Choose a reason for hiding this comment

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

This should be a TypeError I think, (and therefore noted separately in the Raises section in the docstring actually)

@plazas plazas merged commit dc8ce7c into master Apr 8, 2020
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

2 participants