import sphere.SPHERE as SPHERE

#%% init data set
ds = SPHERE.Dataset('/Users/avigan/data/sphere-test-target/', log_level='info')

print('IRDIS reductions:')
for red in ds.IRDIS_reductions:
    print(red)
    red.config['clean'] = True
print()

print('IFS reductions:')
for red in ds.IFS_reductions:
    print(red)
    red.config['clean'] = True
print()

print('SPARTA reductions:')
for red in ds.SPARTA_reductions:
    print(red)
    red.config['clean'] = True
print()

#%% full reduction with default parameters
ds.full_reduction()

import sphere.SPHERE as SPHERE

#%% init data set
ds = SPHERE.Dataset('/Users/avigan/data/sphere-test-target/', log_level='info')

print('IRDIS reductions:')
for red in ds.IRDIS_reductions:
    print(red)
    red.config['clean'] = True
print()

print('IFS reductions:')
for red in ds.IFS_reductions:
    print(red)
    red.config['clean'] = True
print()

print('SPARTA reductions:')
for red in ds.SPARTA_reductions:
    print(red)
    red.config['clean'] = True
print()

#%% full reduction with default parameters
ds.full_reduction()

#%% init data set #%% full reduction with default parameters