Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def __init__(self, ID, location, quantity, fragility_functions, DSG_set,
csg_weights=[1.0], direction=0):
self._ID = ID
self._location = location
self._quantity = quantity
if type(fragility_functions) == FragilityFunction:
self._FF_set = [fragility_functions,]
else:
self._FF_set = fragility_functions
self._DSG_set = DSG_set
self._csg_weights = csg_weights
self._direction = direction