Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: move weaving elec_pppm to textile wellknown. #843

Merged
merged 3 commits into from
Dec 4, 2024

Conversation

n1k0
Copy link
Member

@n1k0 n1k0 commented Dec 3, 2024

🔧 Problem

This patch is part of this notion card

The elec_pppm field in textile processes.json file is used by only one process: Weaving. There's no point keeping it in the process datasource. Also and most importantly, this will help having a single format to express processes for all domains eventually.

🍰 Solution

Move the weaving pick-per-meter consumption value to some static value in Data.Textile.WellKnown.

🏝️ How to test

Ensure everything keeps working as previously, but api and unit tests should get us pretty much covered.

@n1k0 n1k0 requested review from vjousse and paulboosz December 3, 2024 15:29
@n1k0 n1k0 marked this pull request as ready for review December 3, 2024 15:30
Copy link
Collaborator

@vjousse vjousse left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍 Maybe we should remove it from the export too? https://github.com/MTES-MCT/ecobalyse/blob/master/data/textile/export.py#L113

@n1k0 n1k0 merged commit 4922779 into master Dec 4, 2024
11 checks passed
@n1k0 n1k0 deleted the chore/move-elec-pppm-to-constant branch December 4, 2024 07:55
vjousse pushed a commit that referenced this pull request Dec 5, 2024
## [2.7.0](https://github.com/MTES-MCT/ecobalyse/compare/v2.6.0..v2.7.0)
(2024-12-04)



### 🚀 Features

- *(objects)* Introduce components for objects and veli
([#825](#825))
- *(textile)* Update number of references index thresholds.
([#839](#839))
- Introduce objects/veli components db and explorer
([#841](#841))

### 🚜 Refactor

- Move weaving elec_pppm to textile wellknown.
([#843](#843))

### ⚙️ Miscellaneous Tasks

- *(data)* New ingredients
([#814](#814))
- *(data)* Add irrigation to the Ecoinvent organic cotton
([#832](#832))

<!-- generated by git-cliff -->

Signed-off-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants