From 96b0a0ac783d35fbf4e764fe8e610ddc2a79af27 Mon Sep 17 00:00:00 2001
From: Samo Penic <samo.penic@gmail.com>
Date: Wed, 04 Jan 2017 22:03:25 +0000
Subject: [PATCH] Added even more readability...

---
 python/trisurf/trisurf.py |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/python/trisurf/trisurf.py b/python/trisurf/trisurf.py
index b1dc092..92b138b 100644
--- a/python/trisurf/trisurf.py
+++ b/python/trisurf/trisurf.py
@@ -315,7 +315,7 @@
 	def __init__(self, subdir='run0', tape=None, snapshot=None, runArgs=[]):
 		self.subdir=subdir
 		self.runArgs=runArgs
-		self.fromSnapshot=False
+		self.isFromSnapshot=False
 		if(tape!=None):
 			self.initFromTape(tape)
 		if(snapshot!=None):
@@ -334,7 +334,7 @@
 		except:
 			print("Error reading snapshot file")
 			exit(1)
-		self.fromSnapshot=True
+		self.isFromSnapshot=True
 		self.snapshotFile=snapshotfile
 		root = tree.getroot()
 		tapetxt=root.find('tape')
@@ -399,7 +399,7 @@
 				exit(1)
 #Symlinks tape file to the directory or create tape file from snapshot in the direcory...
 			if(self.Dir.makeifnotexist()):
-				if(self.fromSnapshot==False):
+				if(self.isFromSnapshot==False):
 					try:
 						os.symlink(os.path.abspath(self.tapeFilename), self.Dir.fullpath()+"/tape")
 					except:
@@ -427,7 +427,7 @@
 			lastVTU=self.getLastVTU() #we get last VTU file in case we need to continue the simulation from last snapshot. Need to be done before the Dir.goto() call.
 			self.Dir.goto()
 			print("Starting trisurf-ng executable in "+self.Dir.fullpath())
-			if(self.fromSnapshot==True):
+			if(self.isFromSnapshot==True):
 				#here we try to determine whether we should continue the simulation or start from last known VTU snapshot.
 				if(lastVTU==None):
 					initSnap="initial_snapshot.vtu"

--
Gitblit v1.9.3