brightway-lca / bw_processing

Tools to create structured arrays in a common format
https://docs.brightway.dev/projects/bw-processing/
BSD 3-Clause "New" or "Revised" License
7 stars 5 forks source link

Refactor `datapackage.py` #37

Closed nikolaj-funartech closed 5 months ago

nikolaj-funartech commented 1 year ago

Datapackage has several add_xxx methods that could be refactored for make the code shorter and easier to maintain.

cmutel commented 1 year ago

@nikolaj-funartech Can you give a little more detail here?

nikolaj-funartech commented 1 year ago

@cmutel Very basic refactoring: all the add_xxx methods are doing very similar things. The idea is to create sub routines (methods) that do the common work.