Ejemplo n.º 1
0
def arbin_file(auto_summary=True):
    """load an example data file (arbin).

    Args:
        auto_summary: run make_summary automatically (defaults to True)

    Returns:
        cellpy.CellpyData object with the arbin data loaded

    """
    file_path = RAW_PATH / "20160805_test001_45_cc_01.res"
    mass = 0.704
    return cellpy.get(filename=file_path, mass=mass, auto_summary=auto_summary)
Ejemplo n.º 2
0
def test_get():
    import cellpy

    cellpy.get(
        filename=fdv.pec_file_path,
        instrument="pec_csv",
        mass=50_000,
        cycle_mode="cathode",
    )
    cellpy.get(filename=fdv.cellpy_file_path)
    cellpy.get()
Ejemplo n.º 3
0
def cellpy_file():
    """load an example cellpy file."""

    file_path = H5_PATH / "20160805_test001_45_cc.h5"
    return cellpy.get(filename=file_path)
Ejemplo n.º 4
0
def main():
    for f in files:
        print(Path(f).is_file())
        # prms._cellpyfile_step = '/step'
        c = cellpy.get(f)
Ejemplo n.º 5
0
def get_cellpy_cell():
    p = pathlib.Path(h5)
    print(f"Loading file from {p} (exists={p.is_file()})")
    d = cellpy.get(p)
    return d