diff --git a/scripts/prepare_sector_network.py b/scripts/prepare_sector_network.py index 6cd0a10..6d4154a 100644 --- a/scripts/prepare_sector_network.py +++ b/scripts/prepare_sector_network.py @@ -320,7 +320,7 @@ def average_every_nhours(n, offset): #fix copying of network attributes #copied from pypsa/io.py, should be in pypsa/components.py#Network.copy() - allowed_types = (float,int,bool) + string_types + tuple(np.typeDict.values()) + allowed_types = (float,int,bool) + string_types + tuple(np.sctypeDict.values()) attrs = dict((attr, getattr(n, attr)) for attr in dir(n) if (not attr.startswith("__") and