MDFactoryMDFactory

push_artifacts

funcdiscover_and_prepare_artifact_data(simulations, artifact_name=None)tuple[dict[str, list[dict]], list[dict]]

Discover artifact data from simulation folders.

paramsimulationslist[tuple[Path, BuildInput]]

List of (folder_path, build_input) tuples

paramartifact_namestr | None
= None

Specific artifact to discover, or None for all

Returns

tuple

(artifact_records_by_table, overview_records) artifact_records_by_table maps table_name to list of records

funcpush_artifacts(source=None, csv=None, csv_root=None, artifact_name=None, force=False, diff=False)dict[str, int]

Push artifact metadata to database.

paramsourcePath | None
= None

Directory path, glob pattern, or summary YAML file (auto-detected)

paramcsvPath | None
= None

CSV file with build specifications

paramcsv_rootPath | None
= None

Root directory for CSV hash search

paramartifact_namestr | None
= None

Specific artifact to push, or None for all

paramforcebool
= False

Delete existing records before uploading

paramdiffbool
= False

Skip records that already exist

Returns

dict

{table_name: count_uploaded}