semvec/pypi-packages huggingface dataset:
lightimpact 0.1.3
A Python library for calculating Energy Reduction Values (ERVs) of lightweight automotive components in ICVs and EVs
Requires Python: >=3.7

# LightImpact
[![PyPI version](https://badge.fury.io/py/lightimpact.svg?v=0.1.3)](https://pypi.org/project/lightimpact/0.1.3/)

**LightImpact** is an open-source Python library for calculating the **Energy Reduction Value (ERV)** of lightweight automotive components applied in both internal combustion vehicles (ICVs) and electric vehicles (EVs), based on WLTP driving cycle data.
Developed for life cycle assessment (LCA) modeling in the **MM4R** research project at RWTH Aachen University.

## Features
- Physics-based mechanical work calculation
- WLTP-compliant ERV computation
- Compatible with both ICVs and EVs
- Customizable input parameters
- Suitable for integration into LCA workflows

## Installation
Make sure you have [Python](https://www.python.org/downloads/) installed. Then, you can install LightImpact as follows:

Either globally on your system:

```bash
pip3 install lightimpact
```

Or, if you prefer to install it in a virtual environment:

```bash
python3 -m venv lightimpact-env

# On MacOS/Linux
source lightimpact-env/bin/activate
# On Windows
lightimpact-env\Scripts\activate

pip install lightimpact
```

## Example Usage
After installation, you can use LightImpact in your Python scripts. Here's a simple example of how to run a case with custom parameters:
```python
from lightimpact.core import run_lightimpact_case

custom_params = {
    "m_vehicle": 1800,
    "cw": 0.28,
    "A_frontal": 2.3,
    "ds": 25.0,
    "c_fuel_WLTP": 9.5
}

run_lightimpact_case("WLTP_data/Time-Speed-Profile_WLTP_Class3b.csv", custom_params)
```

Running this code will calculate the total mechanical work, the differential efficiency factor, and ERV for both EV and ICV. It will output the results to the console.

## License
Licensed under the MIT License (c) 2025 Suzana Ostojic

## About
LightImpact was developed for use within the MM4R research project at the RWTH Aachen University.  
Contact: [suzana.ostojic@inab.rwth-aachen.de](mailto:suzana.ostojic@inab.rwth-aachen.de)
GitHub: [github.com/suzanaostojic/LightImpact-MM4R](https://github.com/suzanaostojic/LightImpact-MM4R)  
PyPI: [pypi.org/project/lightimpact](https://pypi.org/project/lightimpact)
metaimageio 1.3.2
Support for reading and writing images in MetaIO file format.
Requires Python: >=3.8

# MetaImageIO

Support for reading and writing images in [MetaIO](https://itk.org/Wiki/ITK/MetaIO/Documentation) file format.

[![license](https://img.shields.io/github/license/auneri/MetaImageIO)](https://github.com/auneri/metaimageio/blob/main/LICENSE.md)
[![build](https://img.shields.io/github/actions/workflow/status/auneri/MetaImageIO/main.yml)](https://github.com/auneri/metaimageio/actions)
[![pypi](https://img.shields.io/pypi/v/metaimageio)](https://pypi.org/project/metaimageio)
[![conda-forge](https://img.shields.io/conda/vn/conda-forge/metaimageio)](https://anaconda.org/conda-forge/metaimageio)
[![matlab-file-exchange](https://www.mathworks.com/matlabcentral/images/matlab-file-exchange.svg)](https://www.mathworks.com/matlabcentral/fileexchange/104070-metaimageio)

## Getting started in Python

Install using `pip install metaimageio` or `conda install -c conda-forge metaimageio`.

```python
import metaimageio as mio
image, meta = mio.read('/path/to/input.mha')
mio.write('/path/to/output.mha', image, ElementSpacing=meta['ElementSpacing'])
```

(Highly optional) Add to [imageio](https://imageio.readthedocs.io) plugins.

```python
import imageio.v2 as iio
mio.imageio.add_format()
image = iio.imread('/path/to/input.mha', format='MetaImageIO')
meta = image.meta
```

```python
import imageio.v3 as iio
from metaimageio.imageio import MetaImageIOPlugin
image = iio.imread('/path/to/input.mha', plugin=MetaImageIOPlugin)
meta = iio.immeta('/path/to/input.mha', plugin=MetaImageIOPlugin)
```

## Getting started in MATLAB

Install using the [Add-On Manager](https://www.mathworks.com/help/matlab/matlab_env/get-add-ons.html).

```matlab
[image, meta] = metaimageio.read('/path/to/input.mha');
metaimageio.write('/path/to/output.mha', image, 'ElementSpacing', meta.ElementSpacing);
```

(Optional) Add to [image file format registry](https://www.mathworks.com/help/matlab/ref/imformats.html).

```matlab
metaimageio.imformats();
image = imread('/path/to/input.mha');
meta = imfinfo('/path/to/input.mha');
```

## Releasing a new version

1. Update `project.version` in `pyproject.toml` and `CHANGELOG` with commit message "Release vX.X.X".
2. Add tag vX.X.X with message "Release vX.X.X".
3. Push the tag and create a new release on [metaimageio](https://github.com/auneri/metaimageio).
4. Merge the auto-generated pull request on [metaimageio-feedstock](https://github.com/conda-forge/metaimageio-feedstock).