Reading data¶
Copyright © 2025-2026, Empa.
Functions for reading data from the aurora file structure.
Functions like get_cycling(sample_id), get_eis(sample_id) take a sample ID and return a polars dataframe with data.
To get all of the data for a sample, my_data = SampleDataBundle(sample_id), this bundles all of the time-series,
per-cycle, overall summary, and metadata in one place. You can then use e.g. my_data.cycling to access the time-series
data, or my_data.cycles_summary to get the per-cycle results.
SampleDataBundle is lazy - it only grabs the dataframes you request, so there is little overhead even if you are just
grabbing tiny metadata about a sample.
SampleDataBundle
¶
Lazy-loading wrapper for sample data with support for pre-loaded data.
Source code in aurora_cycler_manager/data_parse.py
186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 | |
battinfo
cached
property
¶
BattINFO ontologized metadata.
cycles_summary
cached
property
¶
Per-cycle summary data.
cycling
cached
property
¶
Time series cycling data.
cycling_shrunk
cached
property
¶
Shrunk time series cycling data.
eis
cached
property
¶
Frequency-domain electrochemical impedance spectroscopy data.
metadata
cached
property
¶
Standard metadata.
overall_summary
cached
property
¶
Overall summary stats.
__init__(sample_id, *, cycling=None, cycling_shrunk=None, eis=None, cycles_summary=None, overall_summary=None, metadata=None, battinfo=None)
¶
Initialize with sample_id and optionally pre-loaded data.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
sample_id
|
str
|
Sample identifier |
required |
cycling
|
DataFrame | None
|
Pre-loaded cycling data (optional) |
None
|
cycling_shrunk
|
DataFrame | None
|
Pre-loaded shrunk cycling data (optional) |
None
|
eis
|
DataFrame | None
|
Pre-loaded electrochemical impedance (optional) |
None
|
cycles_summary
|
DataFrame | None
|
Pre-loaded cycles summary (optional) |
None
|
overall_summary
|
dict | None
|
Pre-loaded overall summary (optional) |
None
|
metadata
|
dict | None
|
Pre-loaded metadata (optional) |
None
|
battinfo
|
dict | None
|
Pre-loaded BattINFO ontologized metadata (optional) |
None
|
Source code in aurora_cycler_manager/data_parse.py
aurora_to_bdf(df)
¶
Convert an Aurora dataframe to BDF compliant dataframe.
Source code in aurora_cycler_manager/data_parse.py
aurora_to_bdf_parquet(aurora_full_file, bdf_file=None)
¶
Convert Aurora full file to BDF parquet file.
Source code in aurora_cycler_manager/data_parse.py
bdf_to_aurora(df)
¶
Convert a BDF compliant dataframe to Aurora.
Source code in aurora_cycler_manager/data_parse.py
get_battinfo(sample_id)
¶
Get the BattINFO dict, merge aux and jobs.
Source code in aurora_cycler_manager/data_parse.py
get_cycles_summary(sample_id)
¶
Get per-cycle summary data from Sample ID.
Source code in aurora_cycler_manager/data_parse.py
get_cycling(sample_id)
¶
Get cycling data from Sample ID.
Source code in aurora_cycler_manager/data_parse.py
get_cycling_shrunk(sample_id)
¶
Get shrunk cycling data from Sample ID.
Source code in aurora_cycler_manager/data_parse.py
get_eis(sample_id)
¶
Get EIS data from Sample ID.
get_metadata(sample_id)
¶
Get sample metadata dictionary.
Source code in aurora_cycler_manager/data_parse.py
get_overall_summary(sample_id)
¶
Get overall data, single scalar quantites from cycling.
Source code in aurora_cycler_manager/data_parse.py
get_sample_folder(sample_id)
¶
read_cycling(file)
¶
Read cycling data from aurora-style parquet/hdf5 file to DataFrame.
Source code in aurora_cycler_manager/data_parse.py
read_metadata(file)
¶
Read metadata from aurora-style parquet/hdf5 file.