@@ -1060,17 +1060,17 @@ def _process_alternative_markets(
1060
1060
alternative_market = alt_markets [asset ]
1061
1061
1062
1062
if already_optimized [asset ] != current_neighbors and alternative_market in already_optimized [asset ]:
1063
- # If all the neighbors are padding, delete the asset if an alternative market exists
1063
+ # If all the neighbors are padding, delete the asset if an alternative market exists.
1064
1064
if all (volume == PADDING_VOLUME for _ , volume in neighbors .items ()):
1065
1065
self ._logger .debug ("Deleting Padding %s with %s" , asset , neighbors .keys ())
1066
1066
timestamp_assets_to_delete .setdefault (timestamp , []).append (asset )
1067
1067
else :
1068
1068
deletable_market [asset ] = alternative_market
1069
1069
elif asset in deletable_market and deletable_market [asset ] == current_neighbors [0 ]:
1070
1070
self ._logger .debug ("Deleting alternative market for %s at %s" , asset , timestamp )
1071
- # Note this deletes the asset from the snapshot and all its neighbors not just the alternative market
1072
- # This will work in most cases, but if the asset has multiple alternative markets, it will delete all of them
1073
- # Currently there are no assets with multiple alternative markets
1071
+ # Note this deletes the asset from the snapshot and all its neighbors not just the alternative market.
1072
+ # This will work in most cases, but if the asset has multiple alternative markets, it will delete all of them.
1073
+ # Currently there are no assets with multiple alternative markets.
1074
1074
timestamp_assets_to_delete .setdefault (timestamp , []).append (asset )
1075
1075
1076
1076
# isolated for testing
0 commit comments