From cfa1df79eb8ee692d78762ff4ce5677a7b56bb05 Mon Sep 17 00:00:00 2001 From: encinass1u <jessica-maria.encinas-silvas4@etu.univ-lorraine.fr> Date: Tue, 17 May 2022 16:02:08 +0000 Subject: [PATCH] Replace Gts_selection.py --- Cell_behavior_initial_steps/Gts_selection.py | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/Cell_behavior_initial_steps/Gts_selection.py b/Cell_behavior_initial_steps/Gts_selection.py index 66f82f4..00c55c9 100644 --- a/Cell_behavior_initial_steps/Gts_selection.py +++ b/Cell_behavior_initial_steps/Gts_selection.py @@ -11,10 +11,10 @@ from bio2mslib.inout.inout import WriteData as WD import os #Selection of desire treated surface, Gts -First_Pickle= True +First_Pickle= False square_grid=False highs_grid=False -diagonal=True +diagonal=False if First_Pickle== True: #L is the matrix dimension @@ -44,12 +44,10 @@ if First_Pickle== True: if (i == j): Gts[i,j]=0.5 else: - with open('G_surface_empty.pkl', 'rb') as csv_file: + with open('Gts_Sample.cvs', 'rb') as csv_file: Gts = pickle.load(csv_file) +#If complete surface SMAT wants to be open type 'Gts_Surface_T.cvs' -with open('G_surface_empty.pkl', 'wb') as csv_file: - pickle.dump(Gts,csv_file) - -im = plt.imshow(Gts, cmap="copper_r") +im = plt.imshow(Gts, cmap="bone") plt.show() -- GitLab