pis-entry #1

Merged
fred.boniface merged 23 commits from pis-entry into dev 2023-05-06 21:51:54 +01:00
Showing only changes of commit 556c09f8f6 - Show all commits

View File

@ -16,16 +16,16 @@ def load(): # Programatically add a `toc` field to each entry.
## reverse the stops and store that.
def parse(codeList):
print(f"pis.parse: codeList starting length: {len(codeList)}")
StartLen = len(codeList)
print(f"pis.parse: codeList starting length: {StartLen}")
for i in codeList:
stops = i['stops']
code = i['code']
for ii in codeList:
if stops == ii['stops'] and code != ii['code']:
print("Identical stopping pattern found")
print(ii)
print(f"Identical stopping pattern found: {ii['code']}")
codeList.remove(ii)
print(f"pis.parse: codeList finishing length: {len(codeList)}")
print(f"pis.parse: Removed {StartLen - len(codeList)} duplicates")
return codeList
def devLoad(): # Programatically add a `toc` field to each entry.