Skip to content

Commit

Permalink
..
Browse files Browse the repository at this point in the history
  • Loading branch information
stvoutsin committed Oct 7, 2024
1 parent 0d3fbbe commit 4805a08
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 53 deletions.
14 changes: 14 additions & 0 deletions src/sia/data/butler/repo/butler.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
datastore:
cls: lsst.daf.butler.datastores.fileDatastore.FileDatastore
records:
table: file_datastore_records
root: <butlerRoot>
registry:
db: sqlite:///<butlerRoot>/gen3.sqlite3
managers:
attributes: lsst.daf.butler.registry.attributes.DefaultButlerAttributeManager
collections: lsst.daf.butler.registry.collections.synthIntKey.SynthIntKeyCollectionManager
datasets: lsst.daf.butler.registry.datasets.byDimensions.ByDimensionsDatasetRecordStorageManagerUUID
datastores: lsst.daf.butler.registry.bridge.monolithic.MonolithicDatastoreRegistryBridgeManager
dimensions: lsst.daf.butler.registry.dimensions.static.StaticDimensionRecordStorageManager
opaque: lsst.daf.butler.registry.opaque.ByNameOpaqueTableStorageManager
Binary file added src/sia/data/butler/repo/gen3.sqlite3
Binary file not shown.
53 changes: 0 additions & 53 deletions src/sia/data/dp02-dev.yaml

This file was deleted.

6 changes: 6 additions & 0 deletions src/sia/models/data_collections.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,12 @@
import contextlib
from dataclasses import dataclass

import structlog
from lsst.daf.butler import ButlerConfig
from lsst.dax.obscore import ExporterConfig

logger = structlog.getLogger(__name__)


@dataclass
class ButlerDataCollection:
Expand Down Expand Up @@ -47,4 +50,7 @@ def exporter_config(self) -> ExporterConfig:
exporter_config.dataset_types[
name
].datalink_url_fmt = self.datalinkurl
logger.info(
"Replacing datalink URL format for %s", self.datalinkurl
)
return exporter_config

0 comments on commit 4805a08

Please sign in to comment.