SourceDataCollection

Attention

This project is still in an early phase of development.

The python API is not yet stable, and some aspects of the schema for the blueprint and workplan will likely evolve. Therefore whilst you are welcome to try out using the package, we cannot yet guarantee backwards compatibility. We expect to reach a more stable version in 2026.

SourceDataCollection#

class cstar.io.source_data.SourceDataCollection(sources: Iterable[SourceData] = ())#

Bases: object

Single class to hold a collection of related SourceData instances

Methods

SourceDataCollection.append(source)

SourceDataCollection.from_common_location(...)

Create a SourceDataCollection automatically by inspecting the contents of a common location.

SourceDataCollection.from_locations(locations)

Create a SourceDataCollection from a list of locations with optional corresponding list of identifiers identifier list.

SourceDataCollection.stage(target_dir)

Stages each SourceData instance in this collection

Attributes

SourceDataCollection.locations

Return the list of locations associated with this SourceDataCollection

SourceDataCollection.sources

Returns the list of SourceData instances associated with this SourceDataCollection