Skip to content

Commit

Permalink
Fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
spoutn1k committed Nov 3, 2022
1 parent 7637f75 commit f1dc949
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions e4s_cl/cli/commands/launch.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ def _setup_wi4mpi(

def locate(soname: str, available: List[Path]) -> Optional[Path]:
matches = set(filter(lambda x: x.name.startswith(soname), available))
search_directories = set(map(lambda x: x.parent), available)
search_directories = set(map(lambda x: x.resolve().parent, available))

# If a match exists in the given libraries
if matches:
Expand All @@ -156,7 +156,7 @@ def locate(soname: str, available: List[Path]) -> Optional[Path]:

LOGGER.debug(
"Failed to locate %(soname)s in %(directories)s",
**dict(
dict(
soname=soname,
directories=search_directories,
),
Expand All @@ -167,7 +167,7 @@ def locate(soname: str, available: List[Path]) -> Optional[Path]:
# Find the entry C and Fortran MPI libraries
run_c_lib = locate(family_metadata.mpi_c_soname, mpi_libraries)
run_f_lib = locate(family_metadata.mpi_f_soname, mpi_libraries)
if not run_c_lib and run_f_lib:
if not (run_c_lib and run_f_lib):
LOGGER.error(
"Could not determine MPI libraries to use; Wi4MPI use aborted "
"(no %(c_soname)s or %(f_soname)s in %(list)s)",
Expand Down

0 comments on commit f1dc949

Please sign in to comment.