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

Add 'open' contextmanager method to ResourcePath

    XMLWordPrintable

    Details

      Description

      This ticket adds an "open" method that can be used to read from and write to ResourcePath locations via file-like objects. The work has already been done on DM-30891 on daf_butler; it just needs to be adapted to the ButlerURI->ResourcePath move/rename, and it makes sense to put it on a separate ticket for review, testing, and merge anyway.

        Attachments

          Activity

          Hide
          jbosch Jim Bosch added a comment -

          Cherry-picks onto resources were happily quite easy, and I don't think downstream pipe_base etc. changes on DM-30891 are likely to drive more changes here, so I think we can just get this reviewed and merged now.

          PR is https://github.com/lsst/resources/pull/2

          Show
          jbosch Jim Bosch added a comment - Cherry-picks onto resources were happily quite easy, and I don't think downstream pipe_base etc. changes on DM-30891 are likely to drive more changes here, so I think we can just get this reviewed and merged now. PR is https://github.com/lsst/resources/pull/2
          Hide
          tjenness Tim Jenness added a comment -

          Looks good. Thanks.

          Show
          tjenness Tim Jenness added a comment - Looks good. Thanks.

            People

            Assignee:
            jbosch Jim Bosch
            Reporter:
            jbosch Jim Bosch
            Reviewers:
            Tim Jenness
            Watchers:
            Jim Bosch, Tim Jenness
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Jenkins

                No builds found.