Skip to content

Commit

Permalink
Rename parameter in args to 'spatial_disaggregation'
Browse files Browse the repository at this point in the history
  • Loading branch information
ClaraBuettner committed Oct 30, 2023
1 parent cd4405f commit d2b218d
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion etrago/appl.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@
},
},
},
"disaggregation": None, # None or 'uniform'
"spatial_disaggregation": None, # None or 'uniform'
# Temporal Complexity:
"snapshot_clustering": {
"active": False, # choose if clustering is activated
Expand Down
2 changes: 1 addition & 1 deletion etrago/args.json
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@
"strategy": "simultaneous"
},
},
"disaggregation": null,
"spatial_disaggregation": null,
"snapshot_clustering": {
"active": false,
"method": "segmentation",
Expand Down
2 changes: 1 addition & 1 deletion etrago/cluster/disaggregation.py
Original file line number Diff line number Diff line change
Expand Up @@ -827,7 +827,7 @@ def update_constraints(network, externals):
def run_disaggregation(self):
log.debug("Running disaggregation.")
if self.args["network_clustering"]["active"]:
disagg = self.args.get("disaggregation")
disagg = self.args.get("spatial_disaggregation")
skip = () if self.args["pf_post_lopf"]["active"] else ("q",)
t = time.time()
if disagg:
Expand Down
2 changes: 1 addition & 1 deletion etrago/cluster/electrical.py
Original file line number Diff line number Diff line change
Expand Up @@ -1018,7 +1018,7 @@ def run_spatial_clustering(self):
None
"""
if self.args["network_clustering"]["active"]:
if self.args["disaggregation"] is not None:
if self.args["spatial_disaggregation"] is not None:
self.disaggregated_network = self.network.copy()
else:
self.disaggregated_network = self.network.copy(with_time=False)
Expand Down

0 comments on commit d2b218d

Please sign in to comment.