Skip to content

Commit

Permalink
Fix pep8
Browse files Browse the repository at this point in the history
  • Loading branch information
ma-sadeghi committed Mar 11, 2024
1 parent 163a882 commit 19fb2c3
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/porespy/beta/_gdd.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import time
from porespy import simulations, tools, settings
from porespy import simulations, settings
from porespy.tools import Results
import numpy as np
import openpnm as op
Expand All @@ -9,7 +9,7 @@
import edt

__all__ = ['tortuosity_gdd', 'chunks_to_dataframe']
settings.loglevel=50
settings.loglevel = 50


@dask.delayed
Expand Down Expand Up @@ -199,7 +199,7 @@ def tortuosity_gdd(im, scale_factor=3, use_dask=True):
all_gD = [result for result in all_results[::2]]
all_tau_unfiltered = [result for result in all_results[1::2]]

all_tau = [result.tortuosity if type(result)!=int
all_tau = [result.tortuosity if not isinstance(result, int)
else result for result in all_tau_unfiltered]

t4 = time.perf_counter()- t0
Expand Down Expand Up @@ -329,9 +329,9 @@ def chunks_to_dataframe(im, scale_factor=3, use_dask=True):
all_gD = [result for result in all_results[::2]]
all_tau_unfiltered = [result for result in all_results[1::2]]

all_porosity = [result.effective_porosity if type(result)!=int
all_porosity = [result.effective_porosity if not isinstance(result, int)
else result for result in all_tau_unfiltered]
all_tau = [result.tortuosity if type(result)!=int
all_tau = [result.tortuosity if not isinstance(result, int)
else result for result in all_tau_unfiltered]

# creates opnepnm network to calculate image tortuosity
Expand Down

0 comments on commit 19fb2c3

Please sign in to comment.