Skip to content

Commit f66a16f

Browse files
authored
Merge pull request #179 from lsst/tickets/DM-39938
DM-39938: Allow schema file to be a general URI
2 parents 6758148 + 3087b14 commit f66a16f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

python/lsst/ap/association/packageAlerts.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,8 @@ class PackageAlertsConfig(pexConfig.Config):
4848
"""
4949
schemaFile = pexConfig.Field(
5050
dtype=str,
51-
doc="Schema definition file for the avro alerts.",
52-
default=alertPack.get_path_to_latest_schema()
51+
doc="Schema definition file URI for the avro alerts.",
52+
default=str(alertPack.get_uri_to_latest_schema())
5353
)
5454
minCutoutSize = pexConfig.RangeField(
5555
dtype=int,
@@ -75,7 +75,7 @@ class PackageAlertsTask(pipeBase.Task):
7575

7676
def __init__(self, **kwargs):
7777
super().__init__(**kwargs)
78-
self.alertSchema = alertPack.Schema.from_file(self.config.schemaFile)
78+
self.alertSchema = alertPack.Schema.from_uri(self.config.schemaFile)
7979
os.makedirs(self.config.alertWriteLocation, exist_ok=True)
8080

8181
@timeMethod

0 commit comments

Comments
 (0)