mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-17 03:08:02 +00:00
restore old-fashioned formats.txt for PerSetTracking.py
the python script updated as well
This commit is contained in:
1
.gitattributes
vendored
1
.gitattributes
vendored
@@ -14627,6 +14627,7 @@ src/test/java/forge/model/FModelTest.java -text
|
||||
tools/PerSetTracking.py svneol=native#text/x-python
|
||||
tools/assignSetInfo.py svneol=native#text/x-python
|
||||
tools/cardTemplateScript.py svneol=native#text/x-python
|
||||
tools/formats.txt -text
|
||||
tools/guilds.xlsx -text
|
||||
tools/mtg-data.txt svneol=native#text/plain
|
||||
tools/mtgdata-sets-to-forge.txt svneol=native#text/plain
|
||||
|
||||
@@ -7,7 +7,7 @@ pathToMtgData = os.path.join(sys.path[0], "mtg-data.txt")
|
||||
|
||||
def getSetByFormat(requestedFormat):
|
||||
# Parse out Standard sets from the Format file
|
||||
formatLocation = os.path.join(sys.path[0], '..', 'res', 'blockdata', 'formats.txt')
|
||||
formatLocation = os.path.join(sys.path[0], 'formats.txt')
|
||||
with open(formatLocation) as formatFile:
|
||||
formats = formatFile.readlines()
|
||||
|
||||
@@ -201,12 +201,13 @@ if __name__ == '__main__':
|
||||
del currentImplemented[:]
|
||||
|
||||
#sort sets by percentage completed
|
||||
totalDataList = sorted(totalData.items(), key=lambda (key,entry): entry[3], reverse=True)
|
||||
totalDataList = sorted(totalData.items(), key=lambda k: k[1][3], reverse=True)
|
||||
|
||||
totalPercentage = 0
|
||||
totalMissing = 0
|
||||
totalImplemented = 0
|
||||
fullTotal = 0
|
||||
|
||||
with open(os.path.join(sys.path[0], "PerSetTrackingResults", "CompleteStats.txt"), "w") as statsfile:
|
||||
statsfile.write("Set: Implemented (Missing) / Total = Percentage Implemented\n")
|
||||
for k,dataKey in totalDataList :
|
||||
@@ -223,4 +224,4 @@ if __name__ == '__main__':
|
||||
printCardSet(standardImplemented, standardMissing, "FormatStandard.txt", setCoverage=standardSets)
|
||||
printDistinctOracle(allMissing, "DistinctOracle.txt")
|
||||
|
||||
print "Done!"
|
||||
print ("Done!")
|
||||
|
||||
5
tools/formats.txt
Normal file
5
tools/formats.txt
Normal file
@@ -0,0 +1,5 @@
|
||||
Name:Standard|Sets:ISD, DKA, AVR, M13, RTR, GTC, DGM
|
||||
Name:Extended|Sets:ZEN, WWK, ROE, M11, SOM, MBS, NPH, M12, ISD, DKA, AVR, M13, RTR, GTC, DGM|Banned:Stoneforge Mystic; Jace, the Mind Sculptor; Ponder; Preordain; Mental Misstep
|
||||
Name:Modern|Sets:8ED, MRD, DST, 5DN, CHK, BOK, SOK, 9ED, RAV, GPT, DIS, CSP, TSP, PLC, FUT, 10E, LRW, EVE, SHM, MOR, ALA, CFX, ARB, M10, ZEN, WWK, ROE, M11, SOM, MBS, NPH, M12, ISD, DKA, AVR, M13, RTR, GTC, DGM
|
||||
Name:Legacy
|
||||
Name:Vintage
|
||||
Reference in New Issue
Block a user