Skip to content

Commit

Permalink
Merge pull request #1616 from caracal-pipeline/unity_model
Browse files Browse the repository at this point in the history
Enabling setting the flux density to 1 Jy (unpolarized)
  • Loading branch information
Athanaseus authored Feb 4, 2025
2 parents 1986014 + 2548105 commit 7ba604b
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 7 deletions.
4 changes: 2 additions & 2 deletions caracal/schema/crosscal_schema.yml
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,8 @@ mapping:
type: int
required: false
example: '0'
no_verify:
desc: Enables setting standard manually [???].
unity:
desc: Enables setting the calibrator to unity.
type: bool
required: false
example: 'False'
Expand Down
4 changes: 2 additions & 2 deletions caracal/schema/polcal_schema.yml
Original file line number Diff line number Diff line change
Expand Up @@ -131,8 +131,8 @@ mapping:
type: bool
required: false
example: 'False'
no_verify:
desc: Enables setting standard manually [???].
unity:
desc: Enables setting the calibrator to unity.
type: bool
required: false
example: 'False'
Expand Down
3 changes: 2 additions & 1 deletion caracal/workers/crosscal_worker.py
Original file line number Diff line number Diff line change
Expand Up @@ -561,10 +561,11 @@ def worker(pipeline, recipe, config):
pipeline.fluxscale_reference = fluxscale_field

if pipeline.enable_task(config, 'set_model'):
if config['set_model']['no_verify']:
if config['set_model']['unity']:
opts = {
"vis": msname,
"field": fluxscale_field,
"standard": "manual",
"scalebychan": True,
"usescratch": True,
}
Expand Down
6 changes: 4 additions & 2 deletions caracal/workers/polcal_worker.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,10 +75,11 @@ def xcal_model_fcal_leak(msname, msinfo, prefix_msbase, recipe, config, pipeline

if not docal:
if pipeline.enable_task(config, 'set_model_leakage'):
if config['set_model_leakage']['no_verify']:
if config['set_model_leakage']['unity']:
opts = {
"vis": msname,
"field": leak_field,
"standard": "manual",
"scalebychan": True,
"usescratch": True,
}
Expand Down Expand Up @@ -991,10 +992,11 @@ def calib_only_leakage(msname, msinfo, prefix_msbase, recipe, config, pipeline,

if not docal:
if pipeline.enable_task(config, 'set_model_leakage'):
if config['set_model_leakage']['no_verify']:
if config['set_model_leakage']['unity']:
opts = {
"vis": msname,
"field": leak_field,
"standard": "manual",
"scalebychan": True,
"usescratch": True,
}
Expand Down

0 comments on commit 7ba604b

Please sign in to comment.