Skip to content

Commit

Permalink
Correct time nchunks
Browse files Browse the repository at this point in the history
  • Loading branch information
AlanLoh committed Dec 9, 2024
1 parent 010ca2c commit 1ff388c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion nenupy/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
__copyright__ = "Copyright 2023, nenupy"
__credits__ = ["Alan Loh"]
__license__ = "MIT"
__version__ = "2.7.12"
__version__ = "2.7.13"
__maintainer__ = "Alan Loh"
__email__ = "alan.loh@obspm.fr"

Expand Down
2 changes: 1 addition & 1 deletion nenupy/io/tf.py
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,7 @@ def wrapper_task(
return time_unix, frequency_hz, data

return cls(
"Polarizartion corection with DreamBeam",
"Polarization corection with DreamBeam",
wrapper_task,
[
"channels",
Expand Down
3 changes: 2 additions & 1 deletion nenupy/io/tf_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,8 @@ def apply_dreambeam_corrections(
(n_time_groups, time_group_size)
)[:, 0]
time_start_idx = np.argmax(db_time >= group_start_time[0])
time_stop_idx = db_time.size - np.argmax(db_time[::-1] < group_start_time[-1])
# time_stop_idx = db_time.size - np.argmax(db_time[::-1] < group_start_time[-1])
time_stop_idx = time_start_idx + n_time_groups - 1

jones = db_jones[
time_start_idx : time_stop_idx + 1, freq_start_idx : freq_stop_idx + 1, :, :
Expand Down

0 comments on commit 1ff388c

Please sign in to comment.