10
0
mirror of https://github.com/LCPQ/QUESTDB_website.git synced 2024-11-03 20:53:59 +01:00

Fix bug in convertState

This commit is contained in:
Mickaël Véril 2020-09-22 11:54:12 +02:00
parent e261d38026
commit 94d2b650d4

View File

@ -113,7 +113,7 @@ class dataFileBase(object):
tmplst.append((mul,symm,trsp,tygrp)) tmplst.append((mul,symm,trsp,tygrp))
lst=[] lst=[]
for index,item in enumerate(tmplst): for index,item in enumerate(tmplst):
unforminitialstate=(initialState.multiplicity,initialState.symetry) unforminitialstate=(int(initialState.multiplicity),initialState.symetry)
countlst=[unforminitialstate]+[(it[0],it[1]) for it in tmplst[:index+1]] countlst=[unforminitialstate]+[(it[0],it[1]) for it in tmplst[:index+1]]
countitem=(item[0],item[1]) countitem=(item[0],item[1])
count=countlst.count(countitem) count=countlst.count(countitem)