Skip to content

Commit

Permalink
get rid of dummy result class
Browse files Browse the repository at this point in the history
  • Loading branch information
segasai committed Nov 16, 2024
1 parent da39b7d commit e934e9d
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions py/rvspecfit/desi/desi_fit.py
Original file line number Diff line number Diff line change
Expand Up @@ -895,15 +895,6 @@ def get_column_desc(setups):
return columnDesc


class DummyResult:
# instead of whatever Executore returns
def __init__(self, x):
self.x = x

def result(self):
return self.x


def proc_desi(fname,
tab_ofname,
mod_ofname,
Expand Down Expand Up @@ -1123,7 +1114,7 @@ def proc_desi(fname,
if specdatas is None:
logging.warning(
f'Giving up on fitting spectra for row {curFiberRow}')
rets.append((DummyResult([None, None]), extra_info))
rets.append((FakeFuture([None, None]), extra_info))
continue
nfibers_good += 1
curbrick, curtargetid = curFiberRow['BRICKID'], curFiberRow['TARGETID']
Expand Down

0 comments on commit e934e9d

Please sign in to comment.