Skip to content

Commit ca3c840

Browse files
committed
v0.6.1 tapered weights fix
1 parent 47c7363 commit ca3c840

File tree

5 files changed

+15
-7
lines changed

5 files changed

+15
-7
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,12 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic
77
Versioning](https://semver.org/spec/v2.0.0.html).
88

9+
## [0.6.1] - 2025-07-29
10+
11+
### Fixed
12+
13+
- tapered weights were accidentally written out in peeling, flagging short baselines since v0.5.0
14+
915
## [0.6.0] - 2025-07-28
1016

1117
### Changed

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "mwa_hyperdrive"
3-
version = "0.6.0"
3+
version = "0.6.1"
44
authors = [
55
"Christopher H. Jordan <christopherjordan87@gmail.com>",
66
"Dev Null <dev.null@curtin.edu.au>",

src/gpu/common.cuh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -486,4 +486,4 @@ inline __device__ void apply_beam(const JONES *j1, JONES *j, const JONES *j2) {
486486
fprintf(stderr, "GPU Error: %s:%d, in function %s: %s\n", __FILE__, __LINE__, __func__, gpuGetErrorString(error_id)); \
487487
return gpuGetErrorString(error_id); \
488488
} \
489-
} while (0)
489+
} while (0)

src/params/peel/mod.rs

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1840,7 +1840,7 @@ fn peel_thread(
18401840
let array_position = obs_context.array_position;
18411841
let dut1 = obs_context.dut1.unwrap_or_default();
18421842

1843-
for (i, (mut vis_residual_tfb, mut vis_weights_tfb, timeblock)) in
1843+
for (i, (mut vis_residual_tfb, vis_weights_tfb, timeblock)) in
18441844
rx_full_residual.iter().enumerate()
18451845
{
18461846
// Should we continue?
@@ -1852,8 +1852,10 @@ fn peel_thread(
18521852
// WEIGHTS //
18531853
// /////// //
18541854

1855+
// copy weights to a new array for tapering, but keep originals for writing
1856+
let mut tapered_weights_tfb = vis_weights_tfb.clone();
18551857
peel_weight_params.apply_tfb(
1856-
vis_weights_tfb.view_mut(),
1858+
tapered_weights_tfb.view_mut(),
18571859
obs_context,
18581860
timeblock,
18591861
apply_precession,
@@ -1881,7 +1883,7 @@ fn peel_thread(
18811883

18821884
peel_cpu(
18831885
vis_residual_tfb.view_mut(),
1884-
vis_weights_tfb.view(),
1886+
tapered_weights_tfb.view(),
18851887
timeblock,
18861888
source_list,
18871889
&mut iono_consts,
@@ -1914,7 +1916,7 @@ fn peel_thread(
19141916
)?;
19151917
peel_gpu(
19161918
vis_residual_tfb.view_mut(),
1917-
vis_weights_tfb.view(),
1919+
tapered_weights_tfb.view(),
19181920
timeblock,
19191921
source_list,
19201922
&mut iono_consts,

0 commit comments

Comments
 (0)