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

lsst.meas.base.tests.TestDataset allows randomness

    XMLWordPrintable

    Details

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

      Description

      lsst.meas.base.tests.TestDataset contains two methods (makePerturbedWcs and realize) that take an optional seed for the random number generator. In both cases, the seed defaults to None, which means the RNG is seeded in some non-deterministic manner. However, this is intended for tests, which we require are deterministic. The current API therefore makes it too easy (simply neglecting to specify the optional randomSeed keyword argument) to do something bad. We should default to some deterministic value for the seed.

        Attachments

          Activity

          Hide
          price Paul Price added a comment -

          John Swinbank, would you take a look at this please?

          Jenkins is just about all green.

          Show
          price Paul Price added a comment - John Swinbank , would you take a look at this please? Jenkins is just about all green.
          Hide
          swinbank John Swinbank added a comment -

          Changes look fine. I added a single comment on GitHub, which you might consider — the gist is that some of the documentation you're removing is not actually wrong, so it might be worth leaving it in place (possibly with a “but be careful you understand the implications of this” caveat). Otherwise, good to go.

          Show
          swinbank John Swinbank added a comment - Changes look fine. I added a single comment on GitHub, which you might consider — the gist is that some of the documentation you're removing is not actually wrong, so it might be worth leaving it in place (possibly with a “but be careful you understand the implications of this” caveat). Otherwise, good to go.
          Hide
          price Paul Price added a comment -

          Thanks John Swinbank.

          Reinstated the doc changes. Jenkins from before is all green. Not going to rerun Jenkins since the changes I made only involve docs, but checked that meas_base tests pass.

          Merged to master.

          Show
          price Paul Price added a comment - Thanks John Swinbank . Reinstated the doc changes. Jenkins from before is all green. Not going to rerun Jenkins since the changes I made only involve docs, but checked that meas_base tests pass. Merged to master.

            People

            Assignee:
            price Paul Price
            Reporter:
            price Paul Price
            Reviewers:
            John Swinbank
            Watchers:
            John Swinbank, Paul Price
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Jenkins

                No builds found.