Skip to content

Commit

Permalink
Typo on antenna radiation pattern shape
Browse files Browse the repository at this point in the history
  • Loading branch information
AlanLoh committed Jan 25, 2024
1 parent 355e3cc commit 6a87dcb
Show file tree
Hide file tree
Showing 2 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.6.4"
__version__ = "2.6.5"
__maintainer__ = "Alan Loh"
__email__ = "[email protected]"

Expand Down
5 changes: 3 additions & 2 deletions nenupy/instru/nenufar.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,8 +147,9 @@ def __getitem__(self, sky: Sky) -> np.ndarray:

if gain.ndim == 1:
# If only one or less dimension is larger than 1 element, get_interp_val returns a 1D array
# It's then esay to just reshape like the original array since a single dimension is affected at best
gain = gain.reshape(sky.value.shape)
# It's then esay to just reshape like the original array (minus the pol) since a single dimension is affected at best
original_shape = sky.value.shape
gain = gain.reshape((original_shape[0], original_shape[1], original_shape[3]))
elif gain.ndim == 2:
# The time dimension is not yet included
gain = gain.reshape((1,) + gain.shape)
Expand Down

0 comments on commit 6a87dcb

Please sign in to comment.