From 91a901199aadf194e450f5a10e478b2df68e5fc2 Mon Sep 17 00:00:00 2001 From: Alex Date: Fri, 30 Aug 2024 05:51:18 -0700 Subject: [PATCH] Bump to latest updates --- docs/TPLOTS.html | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/docs/TPLOTS.html b/docs/TPLOTS.html index bf07479..a141281 100644 --- a/docs/TPLOTS.html +++ b/docs/TPLOTS.html @@ -1227,6 +1227,7 @@
# Modules imports ################################################################################ +import os from collections import Counter from itertools import groupby @@ -1434,7 +1435,7 @@
def square_binary_matrix(binary_matrix, matrix_size=128, interpolation_order=5, - return_square_matrix=False + return_square_matrix_points=False ): """ @@ -1452,11 +1453,11 @@
points = np.column_stack(np.where(final_matrix == 1)).tolist() - if return_square_matrix: - return [points, resized_matrix] + if return_square_matrix_points: + return points else: - return points + return resized_matrix ################################################################################ @@ -2064,7 +2065,7 @@
image_array = [] - for i in range(0, matrix.shape[0]-max(step, overlap), overlap): + for i in range(0, min(1, matrix.shape[0]-max(step, overlap)), overlap): submatrix = matrix[i:i+step, :] @@ -2316,7 +2317,7 @@

Functions

image_array = [] - for i in range(0, matrix.shape[0]-max(step, overlap), overlap): + for i in range(0, min(1, matrix.shape[0]-max(step, overlap)), overlap): submatrix = matrix[i:i+step, :] @@ -3389,7 +3390,7 @@

Functions

-

def square_binary_matrix(

binary_matrix, matrix_size=128, interpolation_order=5, return_square_matrix=False)

+

def square_binary_matrix(

binary_matrix, matrix_size=128, interpolation_order=5, return_square_matrix_points=False)

@@ -3402,7 +3403,7 @@

Functions

def square_binary_matrix(binary_matrix, 
                          matrix_size=128,
                          interpolation_order=5,
-                         return_square_matrix=False
+                         return_square_matrix_points=False
                          ):
 
   """
@@ -3420,11 +3421,11 @@ 

Functions

points = np.column_stack(np.where(final_matrix == 1)).tolist() - if return_square_matrix: - return [points, resized_matrix] + if return_square_matrix_points: + return points else: - return points + return resized_matrix