Skip to content

Commit

Permalink
Format and lint
Browse files Browse the repository at this point in the history
  • Loading branch information
ioannis-vm committed Aug 28, 2024
1 parent 8ae17d4 commit 62cf6be
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
14 changes: 7 additions & 7 deletions modules/Workflow/createResponseCSV.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# noqa: D100
# noqa: D100, INP001

#
# Code to write response.csv file given input and dakotaTab.out files
Expand All @@ -14,9 +14,9 @@
import numpy as np
import pandas as pd

def main(input_file, dakota_tab_file): # noqa: D103

directory_inputs = os.path.dirname(input_file) # noqa: PTH120
def main(input_file, dakota_tab_file): # noqa: D103
directory_inputs = os.path.dirname(input_file) # noqa: PTH120
os.chdir(directory_inputs)

try:
Expand All @@ -26,11 +26,11 @@ def main(input_file, dakota_tab_file): # noqa: D103

except FileNotFoundError:
# Handle the error if the file is not found
print(f"Error createResponseCSV.py: The file '{input_file}' was not found.") # noqa: T201
print(f"Error createResponseCSV.py: The file '{input_file}' was not found.") # noqa: T201
return
except OSError:
# Handle other I/O errors
print(f"Error createResponseCSV.py: Error reading the file '{input_file}'.") # noqa: T201
print(f"Error createResponseCSV.py: Error reading the file '{input_file}'.") # noqa: T201
return

app_data = data.get('Applications', None)
Expand Down Expand Up @@ -59,12 +59,12 @@ def main(input_file, dakota_tab_file): # noqa: D103

except FileNotFoundError:
# Handle the error if the file is not found
print(f"Error createResponseCSV.py: The file '{dakota_tab_file}' not found.") # noqa: T201
print(f"Error createResponseCSV.py: The file '{dakota_tab_file}' not found.") # noqa: T201
return

except OSError:
# Handle other I/O errors
print(f"Error createResponseCSV.py: Error reading '{dakota_tab_file}'.") # noqa: T201
print(f"Error createResponseCSV.py: Error reading '{dakota_tab_file}'.") # noqa: T201
return


Expand Down
1 change: 1 addition & 0 deletions modules/performUQ/common/parallel_runner_mpi4py.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
from mpi4py import MPI # noqa: INP001, D100
from mpi4py.futures import MPIPoolExecutor


class ParallelRunnerMPI4PY: # noqa: D101
def __init__(self, run_type: str = 'runningRemote') -> None:
self.run_type = run_type
Expand Down

0 comments on commit 62cf6be

Please sign in to comment.