We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a369f7e commit 6cdfb25Copy full SHA for 6cdfb25
1 file changed
scripts/process_eessi_software_metadata.py
@@ -317,7 +317,12 @@ def main():
317
for key in full_software_information.keys():
318
json_metadata = copy.deepcopy(base_json_metadata)
319
json_metadata["software"] = full_software_information[key]
320
- with open(f"{output_stub}_{key}.json", "w") as out:
+ if "key" == "software":
321
+ file_suffix = key
322
+ else:
323
+ # everything else is some kind of extension
324
+ file_suffix = "ext-" + key
325
+ with open(f"{output_stub}_{file_suffix}.json", "w") as out:
326
json.dump(json_metadata, out)
327
328
print(f"Successfully processed {input_file} to {output_stub}*.json")
0 commit comments