just making material parameters optional
This commit is contained in:
parent
be0db6d347
commit
e3a5d73c38
|
@ -12,8 +12,9 @@ class Material:
|
|||
"""
|
||||
Material class
|
||||
"""
|
||||
def __init__(self, type, material_id, material_name, density, density_unit, embodied_carbon, embodied_carbon_unit, recycling_ratio,
|
||||
onsite_recycling_ratio, company_recycling_ratio, landfilling_ratio, cost, cost_unit):
|
||||
def __init__(self, type=None, material_id=None, material_name=None, density=None, density_unit=None,
|
||||
embodied_carbon=None, embodied_carbon_unit=None, recycling_ratio=None, onsite_recycling_ratio=None,
|
||||
company_recycling_ratio=None, landfilling_ratio=None, cost=None, cost_unit=None):
|
||||
self._type = type
|
||||
self._id = material_id
|
||||
self._name = material_name
|
||||
|
|
Loading…
Reference in New Issue
Block a user