Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DM-39938: Allow schema file to be a general URI #179

Merged
merged 1 commit into from
Sep 11, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions python/lsst/ap/association/packageAlerts.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ class PackageAlertsConfig(pexConfig.Config):
"""
schemaFile = pexConfig.Field(
dtype=str,
doc="Schema definition file for the avro alerts.",
default=alertPack.get_path_to_latest_schema()
doc="Schema definition file URI for the avro alerts.",
default=str(alertPack.get_uri_to_latest_schema())
)
minCutoutSize = pexConfig.RangeField(
dtype=int,
Expand All @@ -75,7 +75,7 @@ class PackageAlertsTask(pipeBase.Task):

def __init__(self, **kwargs):
super().__init__(**kwargs)
self.alertSchema = alertPack.Schema.from_file(self.config.schemaFile)
self.alertSchema = alertPack.Schema.from_uri(self.config.schemaFile)
os.makedirs(self.config.alertWriteLocation, exist_ok=True)

@timeMethod
Expand Down