Uploaded image for project: 'Data Management'
  1. Data Management
  2. DM-3257

Port flux.scaled from HSC

    XMLWordPrintable

    Details

    • Type: Story
    • Status: Done
    • Resolution: Done
    • Fix Version/s: None
    • Component/s: meas_base
    • Labels:
      None

      Description

      HSC-1295 introduces flux.scaled, which measures the flux within a circular aperture that is set from the size of the PSF, scaled by some factor. Stephen Gwyn recommends using this as our fiducial calibration flux.

        Attachments

          Issue Links

            Activity

            Hide
            swinbank John Swinbank added a comment -

            Hi David Reiss – do you have time to perform a review of this work, please?

            As you can see from the description, it's a port of work which was originally performed on HSC. The original HSC commit is available here, but, while the basic logic remains the same, I've had to perform a fairly comprehensive rewrite to make it work within LSST's new measurement framework. I've also added some simple tests.

            All the work is on PR #30 in meas_base. A Jenkins build (#7248) was successful.

            Show
            swinbank John Swinbank added a comment - Hi David Reiss – do you have time to perform a review of this work, please? As you can see from the description, it's a port of work which was originally performed on HSC. The original HSC commit is available here , but, while the basic logic remains the same, I've had to perform a fairly comprehensive rewrite to make it work within LSST's new measurement framework. I've also added some simple tests. All the work is on PR #30 in meas_base . A Jenkins build ( #7248 ) was successful.
            Hide
            reiss David Reiss added a comment -

            I am adding Simon Krughoff, who has graciously offered to help, as a reviewer.

            Show
            reiss David Reiss added a comment - I am adding Simon Krughoff , who has graciously offered to help, as a reviewer.
            Hide
            krughoff Simon Krughoff added a comment -

            We went over this and things look good. We had a couple of small questions. One general comment is that I like to see the test as a different commit from the implementation. It just splits things up for me logically a little better.

            Feel free to merge.

            Show
            krughoff Simon Krughoff added a comment - We went over this and things look good. We had a couple of small questions. One general comment is that I like to see the test as a different commit from the implementation. It just splits things up for me logically a little better. Feel free to merge.
            Hide
            swinbank John Swinbank added a comment -

            Thanks both! Comments on the PR look very fair; I'll respond shortly

            If I were to split the test and the implementation into separate commits, what order would you like to see them in? Are you suggesting a traditional TDD-style "write a failing test then write the code to make it pass" approach, or would you rather see the implementation first? I prefer the former, but I'm not sure how much of a sin it is to have a known-bad state on a branch.

            Show
            swinbank John Swinbank added a comment - Thanks both! Comments on the PR look very fair; I'll respond shortly If I were to split the test and the implementation into separate commits, what order would you like to see them in? Are you suggesting a traditional TDD-style "write a failing test then write the code to make it pass" approach, or would you rather see the implementation first? I prefer the former, but I'm not sure how much of a sin it is to have a known-bad state on a branch.
            Hide
            krughoff Simon Krughoff added a comment -

            In theory, I agree that having the test first is nice, but I think the benefits of sticking to the policy that all commits should build has a greater benefit in practice. As a reviewer, I'm not sure I care whether it comes first or second as long as the code implementation and test implementation are separate.

            Show
            krughoff Simon Krughoff added a comment - In theory, I agree that having the test first is nice, but I think the benefits of sticking to the policy that all commits should build has a greater benefit in practice. As a reviewer, I'm not sure I care whether it comes first or second as long as the code implementation and test implementation are separate.
            Hide
            ktl Kian-Tat Lim added a comment -

            Our only guarantee is that master must build; branches need not at this time. I believe it is true that having all commits build helps things like git bisect. One possibility (but one that mixes some file changes) is to add the test but have it skipped or marked "should fail" until the implementation is added.

            Show
            ktl Kian-Tat Lim added a comment - Our only guarantee is that master must build; branches need not at this time. I believe it is true that having all commits build helps things like git bisect . One possibility (but one that mixes some file changes) is to add the test but have it skipped or marked "should fail" until the implementation is added.
            Hide
            swinbank John Swinbank added a comment - - edited

            Split test into a separate commit (after the implementation, for the record). Responded to comments on GitHub, notably adding some commentary around the choice of default value for the scale factor. Created DM-4861 to request some meas_base documentation.

            Merged.

            Show
            swinbank John Swinbank added a comment - - edited Split test into a separate commit (after the implementation, for the record). Responded to comments on GitHub, notably adding some commentary around the choice of default value for the scale factor. Created DM-4861 to request some meas_base documentation. Merged.
            Hide
            swinbank John Swinbank added a comment -
            Show
            swinbank John Swinbank added a comment - Release notes updated .

              People

              Assignee:
              swinbank John Swinbank
              Reporter:
              price Paul Price
              Reviewers:
              David Reiss, Simon Krughoff
              Watchers:
              David Reiss, John Swinbank, Kian-Tat Lim, Paul Price, Simon Krughoff
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Jenkins

                  No builds found.