Uploaded image for project: 'Pegasus'
  1. Pegasus
  2. PM-1819 5.0.3 Python API Improvements
  3. PM-1816

make it easier to add entries to the replica catalog by inferring site, lfn, pfn from file Path or URL

XMLWordPrintable

      Suggested by Rajiv, the general idea is this:

      1. create a file objects
        a = File(Path("/dir/f.txt")
        b = File("http://hostname/f2.txt")

      standard file paths assume site to be "local", for any other URL type, site does not matter

      rc = ReplicaCatalog()
      rc.add(a,b)

      1. this would be the same as doing
        rc.add_replica("local", "f.txt", "/dir/f.txt")
        rc.add_replica("anysite", "f2.txt", "http://hostname/f2.txt")
      1. but then convey the same amount of information with much less text

            Assignee:
            mayani Rajiv Mayani
            Reporter:
            tanaka Ryan Tanaka (Inactive)
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: