You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
the sum_vis/diff_vis functions require all parameters to be the same to difference or add two sets of visibilities. This includes the filename parameter, which we can expect to differ for things we want to perform these operations with. While telescope, time, freq, etc should all match I think we can make an exception for the filename.
In [2]: uvd_data=UVData.from_file("mmode_one_time_high_band.uvh5")
uvd_offset=UVData.from_file("mmode_flux_offset.uvh5")
In [3]: uvd_offset=UVData.from_file("mmode_flux_offset.uvh5")
In [4]: uvd_data.diff_vis?
In [5]: uvd_diff=uvd_data.diff_vis(uvd_offset)
filenameparametervalueisalistofstrings, valuesaredifferent---------------------------------------------------------------------------ValueErrorTraceback (mostrecentcalllast)
<ipython-input-5-e939de554361>in ?()
---->1uvd_diff=uvd_data.diff_vis(uvd_offset)
/opt/devel/mkolopanis/envs/vis_cpu/lib/python3.11/site-packages/pyuvdata/uvdata/uvdata.pyin ?(self, other, inplace, run_check, check_extra, run_check_acceptability, strict_uvw_antpos_check, override_params)
7691strict_uvw_antpos_check=strict_uvw_antpos_check,
7692override_params=override_params,
7693 )
7694else:
->7695returnself.sum_vis(
7696other,
7697difference=True,
7698inplace=inplace,
/opt/devel/mkolopanis/envs/vis_cpu/lib/python3.11/site-packages/pyuvdata/uvdata/uvdata.pyin ?(self, other, inplace, difference, verbose_history, run_check, check_extra, run_check_acceptability, strict_uvw_antpos_check, override_params)
7571msg= (
7572"UVParameter "+param[1:] +" does not match. Cannot "7573"combine objects."7574 )
->7575raiseValueError(msg)
75767577# Merge extra keywords7578forintersectioninset(this.extra_keywords.keys()) &set(
ValueError: UVParameterfilenamedoesnotmatch. Cannotcombineobjects.
The text was updated successfully, but these errors were encountered:
the sum_vis/diff_vis functions require all parameters to be the same to difference or add two sets of visibilities. This includes the
filename
parameter, which we can expect to differ for things we want to perform these operations with. While telescope, time, freq, etc should all match I think we can make an exception for the filename.The text was updated successfully, but these errors were encountered: