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

Metadata configuration files #28

Merged
merged 6 commits into from
Jun 11, 2024
Merged
Show file tree
Hide file tree
Changes from 5 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
49 changes: 49 additions & 0 deletions resources/loki.configuration.json.example
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this file something you would edit/modify while the ingester is running?
If not, maybe it'll be easier if we turn it into a python module instead of json file.

Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
{
"proposal_id" : {
"field_type" : "high_level",
"machine_name" : "proposalId",
"source" : "NXS:/entry/experiment_identifier",
"type" : "string"
},
"principal_investigator" : {
"field_type" : "high_level",
"machine_name" : "principalInvestigator",
"source" : "UO:proposal:/proposer/firstname + UO:proposal:/proposer/lastname",
"type" : "string"
},
"dataset_name" : {
"field_type" : "high_level",
"machine_name" : "datasetName",
"source" : "NXS:/entry/title",
"type" : "string"
},
"acquisition_type" : {
"field_type" : "scientific_metadata",
"machine_name" : "acquisition_type",
"human_name" : "Acquisition Type",
"value" : "Unknown",
"type" : "string"
},
"start_time" : {
"field_type" : "scientific_metadata",
"machine_name" : "start_time",
"human_name" : "Start Time",
"source" : "WRDN:/metadata/start_time",
"transformation" : "timestamp_to_iso8601",
"type" : "date"
}
"end_time" : {
"field_type" : "scientific_metadata",
"machine_name" : "end_time",
"human_name" : "End Time",
"source" : "WRDN:/metadata/end_time",
"transformation" : "timestamp_to_iso8601",
"type" : "date"
},
"sample_id" : {
"field_type" : "high_level",
"machine_name" : "sampleId",
"value" : "",
"type" : "string"
},
]
2 changes: 0 additions & 2 deletions src/scicat_ingestor.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,6 @@ def main() -> None:
# instantiate a new process and runs backeground ingestor
# on the nexus file

pass

# check if we need to commit the individual message
if config.kafka_options.individual_message_commit:
consumer.commit(message=message)
Loading