Commit 621cdc88 authored by 3Yan's avatar 3Yan
Browse files

DRL Minor fix

* Fixed export which has been broken by previous patch
parent 6426857b
......@@ -117,10 +117,12 @@ def get_parentset(ds, drls):
for row in range(drls['dt'].rowCount()):
if drls['dt'].cellWidget(row, 0).checkState() == 2:
rowlist.append(row)
if drls['dt'].cellWidget(row, 1).currentIndex() > 0\
and floatize(drls['dt'], row, 2) != 0:
rowlist.append(
drls['dt'].cellWidget(row, 1).currentIndex()-1)
for corcol in range(drls['cors'].value()):
if drls['dt'].cellWidget(
row, corcol*2 + 1).currentIndex() > 0\
and floatize(drls['dt'], row, 2) != 0:
rowlist.append(
drls['dt'].cellWidget(row, 1).currentIndex()-1)
for row in set(rowlist):
intensity = get_intensity(row, ds, drls)
intensities.append(intensity)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment