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

Homogeneous coordinates for field vectors in Mercury iPS #1398

Merged
merged 5 commits into from
Dec 20, 2018

Conversation

astafan8
Copy link
Contributor

This PR adds functionality to FieldVector that allows for it to be used as a snapshotable parameter, and that adds conversion to and from homogeneous coordinate representations to make it easier to transform FieldVector instances. This functionality is used by the new field-valued parameters of the MercuryiPS instrument.

Developed by @cgranade in collaboration with @wpfff.

This functionality is "sort-of-cheery-picked" from #1348. #1348 also contains async ramping, but that requires more work, hence this PR. The proposal is to merge this independently from async part.

@cgranade Could you have a look at this and tell me if I missed any functionality that enables automated field ramping that you've implemented for pytopo? (without async parts)

Adds functionality to FieldVector that allows for it to be used as a
snapshotable parameter, and that adds conversion to and from
homogeneous coordinate representations to make it easier to transform
FieldVector instances. This functionality is used by the new
field-valued parameters of the MercuryiPS instrument.

This commit has been made via `git checkout <files> -p` in order to
take only changes of interest from a branch that contained more
changes. In order to preserve the reference to the original author of
this work, the "cherry picked from..." lines are added below.

(cherry picked from commit f1bf38b)
(cherry picked from commit 3c8a0a1)
(cherry picked from commit 251a2f4)
(cherry picked from commit b31fa46)
(cherry picked from commit 5e23cd6)
@codecov
Copy link

codecov bot commented Nov 28, 2018

Codecov Report

Merging #1398 into master will decrease coverage by 0.04%.
The diff coverage is 68.25%.

@@            Coverage Diff             @@
##           master    #1398      +/-   ##
==========================================
- Coverage   74.13%   74.09%   -0.05%     
==========================================
  Files          85       85              
  Lines        9822     9883      +61     
==========================================
+ Hits         7282     7323      +41     
- Misses       2540     2560      +20

Copy link
Collaborator

@jenshnielsen jenshnielsen left a comment

Choose a reason for hiding this comment

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

Looks fine to me. We could add some more validators to the new parameters? @WilliamHPNielsen should probably sign off on this as the original writer of the driver

Copy link
Contributor

@WilliamHPNielsen WilliamHPNielsen left a comment

Choose a reason for hiding this comment

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

Apologies for being slow on reviewing this. I generally approve and also just tested it on a real instrument; the example notebook runs with no problems.

As a small style request, I'd like the non-PEP8 compliant spaces before colons to go.

Copy link
Contributor

@WilliamHPNielsen WilliamHPNielsen 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, thanks, you guys.

@jenshnielsen jenshnielsen merged commit fb75a15 into microsoft:master Dec 20, 2018
@jenshnielsen jenshnielsen deleted the mercury-field-only branch December 20, 2018 13:32
giulioungaretti pushed a commit that referenced this pull request Dec 20, 2018
Merge: 1479997 01e474a
Author: Jens Hedegaard Nielsen <jenshnielsen@gmail.com>

    Merge pull request #1398 from astafan8/mercury-field-only
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants