Skip to content

Commit

Permalink
Delete sample_rate_consistant parameter at is_close function from arr…
Browse files Browse the repository at this point in the history
…ay module
  • Loading branch information
neyberson committed May 28, 2024
1 parent 79b1bfb commit ac76816
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pozo/utils/array.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ def summarize_array(depth):

# is_close has 4 parameters, this return a boolean value that verify the cosistent
# from the depth data
def is_close(depth, sample_rate_consistent, sample, percent):
def is_close(depth, sample, percent):
sample_rate_consistent_list = []
for i in range(len(depth) - 1):
if isinstance(depth, (pd.Series, pd.DataFrame)):
Expand All @@ -69,7 +69,7 @@ def is_close(depth, sample_rate_consistent, sample, percent):
start = depth[i]
stop = depth[i + 1]
diff_percent = (math.fabs(stop - start) / sample) * 100
if diff_percent > percent or sample_rate_consistent is False:
if diff_percent > percent:
sample_rate_consistent_list.append(False)
else:
sample_rate_consistent_list.append(True)
Expand Down

0 comments on commit ac76816

Please sign in to comment.