Skip to content
Snippets Groups Projects
Commit cfa1df79 authored by encinass1u's avatar encinass1u
Browse files

Replace Gts_selection.py

parent c91c6128
No related branches found
No related tags found
1 merge request!2Update README.md
......@@ -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()
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment