diff V5/runme.py @ 24:d2bd074d9284

fixing sextile range and allowing save of raw files to save repull every time new class structure
author DaveM
date Mon, 09 Apr 2018 16:07:05 +0100
parents 11d4e438045e
children a94569c4a70b
line wrap: on
line diff
--- a/V5/runme.py	Mon Apr 09 15:07:21 2018 +0100
+++ b/V5/runme.py	Mon Apr 09 16:07:05 2018 +0100
@@ -102,12 +102,12 @@
 		if issue is not None:
 			print 'SKIPPING person '+ person.id + ' error with ' + issue 
 		else:
-			print 'parsing person '+ person.id
+			# print 'parsing person '+ person.id
 			if person.resp is None:
 				print 'Posting Request for person '+ person.id
 				person.makePayload()
 				rawData[person.id] = person.requestURL()
-			print 'parsing person '+ person.id
+			# print 'parsing person '+ person.id
 			person.horiscope = person.parsePage()
 			# person.horiscope.printPositions()
 		if saveFile is not None:
@@ -121,39 +121,17 @@
 		if issue is not None:
 			print 'SKIPPING person '+ person.id + ' error with ' + issue 
 		else:
-			print 'parsing person '+ person.id
+			# print 'parsing person '+ person.id
 			if person.resp is None:
-				print 'Posting Request for person '+ person.id
+				print 'Reading Request for person '+ person.id
 				person.makePayload()
 				person.resp = rawData[person.id]
-			print 'parsing person '+ person.id
+			# print 'parsing person '+ person.id
 			person.horiscope = person.parsePage()
 			# person.horiscope.printPositions()
 		if saveFile is not None:
 			savePick(saveFile,people)
 
-# def testMain():
-# 	pickFile = 'outData.pick'
-# 	restartDataFile = 0
-# 	if(restartDataFile):
-# 		# people = makePeople('individuals.csv')
-# 		# savePick(pickFile,people)
-# 		people = loadPick(pickFile)
-# 		parseSaveFile = pickFile.split('.')[0]+'_collect.pick'
-# 		parseHoriscope(people,parseSaveFile)
-# 	else:
-# 		people = loadPick('outData_collect.pick')
-# 	comp = syn.compatibility()
-# 	comp.parseCompatRules('compatibilityRules.csv')
-# 	for person in people:
-# 		if person.issue is None:
-# 			person.score = comp.calcCompatibility(person.horiscope)
-# 			if person.score is None:
-# 				person.issue = 'None Planet Locations'
-# 			else:
-# 				print person.id,person.score
-# 	pdb.set_trace()
-
 def _main():
 	pickFile = 'outData.pick'
 	if not os.path.exists(pickFile):