Skip to content

Commit

Permalink
Change to != from 'not .. =='
Browse files Browse the repository at this point in the history
  • Loading branch information
berland committed Aug 29, 2023
1 parent ca5ea2f commit 00503c3
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/ert/gui/ertwidgets/caselist.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ def addItem(self):
parent=self,
)
new_case_name = dialog.showAndTell()
if not new_case_name == "":
if new_case_name != "":
ensemble = self.storage.create_experiment(
parameters=self.facade.ensemble_config.parameter_configuration
).create_ensemble(
Expand Down
2 changes: 1 addition & 1 deletion src/ert/gui/ertwidgets/pathchooser.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ def selectPath(self):
self, "Select a directory", current_directory
)

if not current_directory == "":
if current_directory != "":
if not self._model.pathMustBeAbsolute():
cwd = os.getcwd()
match = re.match(cwd + "/(.*)", current_directory)
Expand Down
4 changes: 1 addition & 3 deletions src/ert/run_models/multiple_data_assimilation.py
Original file line number Diff line number Diff line change
Expand Up @@ -198,9 +198,7 @@ def parseWeights(weights: str) -> List[float]:
return []

elements = weights.split(",")
elements = [
element.strip() for element in elements if not element.strip() == ""
]
elements = [element.strip() for element in elements if element.strip() != ""]

result = []
for element in elements:
Expand Down

0 comments on commit 00503c3

Please sign in to comment.