Skip to content

Commit

Permalink
aaa
Browse files Browse the repository at this point in the history
  • Loading branch information
Fil8 committed Jan 23, 2025
1 parent 110c7c2 commit 57f839a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 14 deletions.
2 changes: 1 addition & 1 deletion caracal/workers/line_worker.py
Original file line number Diff line number Diff line change
Expand Up @@ -975,7 +975,7 @@ def worker(pipeline, recipe, config):
caracal.log.info('CDELT = {}'.format(cdelt))
caracal.log.info('ChWidth = {}'.format(chanwidth[0]))


caracal.log.info(np.round(cdelt) > np.round(chanwidth[0]*binchans,5))
if np.round(cdelt) > np.round(chanwidth[0]*binchans,5):
doSpec = True
elif doProj:
Expand Down
16 changes: 3 additions & 13 deletions caracal/workers/selfcal_worker.py
Original file line number Diff line number Diff line change
Expand Up @@ -1821,16 +1821,9 @@ def restore(num, prod_path, mslist_out, enable_inter=True):
"dd-dd-term": False,
"model-ddes": 'never',
}
# Set the table name
print('(#######################################)')
print(matrix_type,gupdate)
print('\n\n')
print('(#######################################)')

matrix_type = config[key]['gain_matrix_type'][num - 1 if len(config[key]['gain_matrix_type']) >= num else -1]
print('(#######################################)')
print(matrix_type,gupdate)
print('\n\n')
print('(#######################################)')

if gupdate == 'phase-diag' and matrix_type == 'Fslope':
g_table_name = "{0:s}/{3:s}-g-delay-gains-{1:d}-{2:s}.parmdb:output".format(get_dir_path(prod_path,
pipeline), num, os.path.splitext(fromname)[0], prefix)
Expand Down Expand Up @@ -1858,10 +1851,7 @@ def restore(num, prod_path, mslist_out, enable_inter=True):
cubical_gain_interp_opts.update({
"g-load-from": g_table_name
})
print('(#######################################)')
print(g_table_name)
print('\n\n')
print('(#######################################)')

# expand
if config['cal_bjones']:
if enable_inter:
Expand Down

0 comments on commit 57f839a

Please sign in to comment.