Closed yalinli2 closed 1 year ago
@haclohman an FYI that I found a bug in Reclaimer
as I was doing this, specifically
https://github.com/QSD-Group/QSDsan/blob/65fcd627e419f0b42433eba2a99d596024531086/qsdsan/sanunits/_reclaimer.py#L438
# Battery replaces Solar
self.construction = Construction(item='Solar', quantity=solar_quant, quantity_unit='m2')
self.construction = Construction(item='Battery', quantity=battery_quant, quantity_unit='kg')
should be
# Both Battery and Solar are included
self.construction = (
Construction(item='Solar', quantity=solar_quant, quantity_unit='m2'),
Construction(item='Battery', quantity=battery_quant, quantity_unit='kg'),
)
After fixing this, there are some minor changes for sysC's LCA, but not to the point that I'll be worried about the manuscripts, you can see the diff scale here: https://github.com/QSD-Group/EXPOsan/commit/add7cdff844dc14d920fd419a9c10c9642d54817
@QSD-Group/qsdsan Just want to let you know some of the changes I've made/am making regarding to LCA, mainly two things:
add_indicators
,get_impact
, andget_impacts
so that you can just add characterization factors for new indicators and see the stream impacts using the stream (previously you need to separately createStreamImpactItem
/LCA
objs to do this)_init_lca
function that handles LCA-related attribute initialization to avoid repetitive creation ofConstruction
andTransportation
objs, I've updated the units accordingly, you can refer to units likePitLatrine
for examplesFeel free to let me know if this breaks your systems, thanks!