genList sort and add requirement imports to main package

This commit is contained in:
lukew3
2020-11-20 20:41:43 -05:00
parent e6f53c9475
commit 65d5902d90
2 changed files with 9 additions and 1 deletions

View File

@@ -1,5 +1,11 @@
import sys
import traceback
import random
import sympy
import numpy
import scipy
genList = []
@@ -29,4 +35,6 @@ class Generator:
def getGenList():
correctedList = genList[-1:] + genList[:-1]
#Orders list by id
correctedList.sort()
return correctedList

View File

@@ -10,7 +10,7 @@ for item in list:
print(item[2])
# print(mathgen.getGenList())
print(mathgen.genById(111))
print(mathgen.genById(1))
#Make a pdf with 10 problems of generator id 1
# mathgen.makePdf(0, 10)