Skip to content

Commit 399dbfa

Browse files
authored
Merge pull request #28 from SciCatProject/metadata_configuration_files
Metadata configuration files
2 parents 0cd2600 + 034e497 commit 399dbfa

File tree

2 files changed

+51
-3
lines changed

2 files changed

+51
-3
lines changed
+49
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
{
2+
"proposal_id" : {
3+
"field_type" : "high_level",
4+
"machine_name" : "proposalId",
5+
"source" : "NXS:/entry/experiment_identifier",
6+
"type" : "string"
7+
},
8+
"principal_investigator" : {
9+
"field_type" : "high_level",
10+
"machine_name" : "principalInvestigator",
11+
"source" : "UO:proposal:/proposer/firstname + UO:proposal:/proposer/lastname",
12+
"type" : "string"
13+
},
14+
"dataset_name" : {
15+
"field_type" : "high_level",
16+
"machine_name" : "datasetName",
17+
"source" : "NXS:/entry/title",
18+
"type" : "string"
19+
},
20+
"acquisition_type" : {
21+
"field_type" : "scientific_metadata",
22+
"machine_name" : "acquisition_type",
23+
"human_name" : "Acquisition Type",
24+
"value" : "Unknown",
25+
"type" : "string"
26+
},
27+
"start_time" : {
28+
"field_type" : "scientific_metadata",
29+
"machine_name" : "start_time",
30+
"human_name" : "Start Time",
31+
"source" : "WRDN:/metadata/start_time",
32+
"transformation" : "timestamp_to_iso8601",
33+
"type" : "date"
34+
}
35+
"end_time" : {
36+
"field_type" : "scientific_metadata",
37+
"machine_name" : "end_time",
38+
"human_name" : "End Time",
39+
"source" : "WRDN:/metadata/end_time",
40+
"transformation" : "timestamp_to_iso8601",
41+
"type" : "date"
42+
},
43+
"sample_id" : {
44+
"field_type" : "high_level",
45+
"machine_name" : "sampleId",
46+
"value" : "",
47+
"type" : "string"
48+
},
49+
]

src/scicat_ingestor.py

+2-3
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,8 @@ def main() -> None:
6464

6565
# instantiate a new process and runs backeground ingestor
6666
# on the nexus file
67-
68-
pass
67+
...
6968

7069
# check if we need to commit the individual message
71-
if config.kafka_options.individual_message_commit:
70+
elif config.kafka_options.individual_message_commit:
7271
consumer.commit(message=message)

0 commit comments

Comments
 (0)