Skip to content

Commit 55e32ed

Browse files
committed
style: linting
1 parent df90fc5 commit 55e32ed

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

LoopStructural/modelling/core/geological_model.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -474,7 +474,7 @@ def _add_feature(self, feature, index: Optional[int] = None):
474474

475475
# If object already exists, update its properties, otherwise add it.
476476
if feature.name in getattr(self.topology, '_objects', {}):
477-
topo_obj = self.topology.get_object(feature.name)
477+
_topo_obj = self.topology.get_object(feature.name)
478478
else:
479479
self.topology.add_geological_object(
480480
name=feature.name,

LoopStructural/modelling/core/geological_scenario.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -354,7 +354,7 @@ def get_all_observations_dataframe(self) -> pd.DataFrame:
354354
return pd.DataFrame()
355355

356356
dfs = []
357-
for feature_name, obs_collection in self._observations.items():
357+
for _feature_name, obs_collection in self._observations.items():
358358
df = obs_collection.to_dataframe()
359359
# Also include any raw dataframe
360360
if hasattr(obs_collection, '_raw_dataframe'):

LoopStructural/modelling/core/model_graph.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -642,7 +642,7 @@ def topological_sort_by_dependencies(self) -> Dict[str, Union[List[str], List[Li
642642

643643
# Compute in-degree for Kahn's algorithm
644644
indeg: Dict[str, int] = dict.fromkeys(deps.keys(), 0)
645-
for u, succs in deps.items():
645+
for _u, succs in deps.items():
646646
for v in succs:
647647
indeg[v] = indeg.get(v, 0) + 1
648648

@@ -968,7 +968,7 @@ def identify_conformable_groups(self) -> List[List[GeologicalObject]]:
968968
RelationshipType.YOUNGER_THAN,
969969
}
970970

971-
unconformity_types = {
971+
_unconformity_types = {
972972
RelationshipType.ERODE_UNCONFORMABLY_OVERLIES,
973973
RelationshipType.ERODE_UNCONFORMABLY_UNDERLIES,
974974
RelationshipType.ONLAP_UNCONFORMABLY_OVERLIES,

0 commit comments

Comments
 (0)