From d0cb7586db201d9fe99149b47d8deca70fb2efc8 Mon Sep 17 00:00:00 2001 From: Donald Calloway Date: Sat, 4 Oct 2025 19:28:51 -0700 Subject: [PATCH] moved module files to the modules directory --- determinate_test.py | 2 +- determinate2x2.py => modules/determinate2x2.py | 0 determinate3x3.py => modules/determinate3x3.py | 2 +- mat_flat.py => modules/mat_flat.py | 1 + mat_trans.py => modules/mat_trans.py | 0 5 files changed, 3 insertions(+), 2 deletions(-) rename determinate2x2.py => modules/determinate2x2.py (100%) rename determinate3x3.py => modules/determinate3x3.py (97%) rename mat_flat.py => modules/mat_flat.py (99%) rename mat_trans.py => modules/mat_trans.py (100%) diff --git a/determinate_test.py b/determinate_test.py index 932bb34..1ab14d2 100644 --- a/determinate_test.py +++ b/determinate_test.py @@ -1,4 +1,4 @@ -import determinate3x3 +import modules.determinate3x3 as determinate3x3 Matrix = [ [4, 3, 6], diff --git a/determinate2x2.py b/modules/determinate2x2.py similarity index 100% rename from determinate2x2.py rename to modules/determinate2x2.py diff --git a/determinate3x3.py b/modules/determinate3x3.py similarity index 97% rename from determinate3x3.py rename to modules/determinate3x3.py index cfc202b..ed5dd6d 100644 --- a/determinate3x3.py +++ b/modules/determinate3x3.py @@ -12,7 +12,7 @@ NOTE: You call determinate3x3.det3x3(M) to find the determinate of matrix M. If will receive an AssertionError: "Matrix is not 3x3" """ -import determinate2x2 +import modules.determinate2x2 as determinate2x2 import copy diff --git a/mat_flat.py b/modules/mat_flat.py similarity index 99% rename from mat_flat.py rename to modules/mat_flat.py index 4ce789c..4f1e068 100644 --- a/mat_flat.py +++ b/modules/mat_flat.py @@ -1,5 +1,6 @@ from typing import List + """ Flattens a 2D list (matrix) into a 1D list. Args: diff --git a/mat_trans.py b/modules/mat_trans.py similarity index 100% rename from mat_trans.py rename to modules/mat_trans.py