How to Prepare and Upload Data¶
This plugin is designed to parse data from either structured YAML files or a "wide" format CSV file. For best results and traceability, we recommend converting your data into the individual YAML file format for small dataset.
Supported File Formats¶
-
YAML (Recommended): Each file should contain the data for a single battery material entry. The keys in the YAML file should correspond to the attributes in the
BatteryDatabase
schema. This is the format generated by thesplit_csv_to_yaml.py
utility script. We are using following standard script.Example (
entry1.extracted_battery.yaml
):The parser will automatically map keys likeName: 40-CuO / C Extracted_name: '[{''Cu'': ''1.0'', ''O'': ''1.0''}, {''C'': ''1.0''}]' DOI: 10.1039/C4NR06432A Capacity_Raw_value: 217 Capacity_Raw_unit: mAhg−1 Voltage_Raw_value: 1.5 Voltage_Raw_unit: V
Capacity_Raw_value
to the correct schema quantitycapacity_raw_value
. -
CSV/XLSX (Wide Format): You can also upload a single CSV or Excel file containing all your data. Each row should represent one material, and the columns should correspond to the schema quantities.
Example (
battery_data_pivot.csv
):
Upload Process¶
- Install the plugin if its not already there.
- Navigate to the UPLOAD page in your NOMAD GUI and Create a new upload.
- Drag and drop your data files (either a directory of YAML files or a single CSV/XLSX file) into the upload area.
- NOMAD's parser matching mechanism will identify the files and process them. Each YAML file or each row in the CSV file will become a separate entry in NOMAD.