Skip to content

Commit

Permalink
response to pr
Browse files Browse the repository at this point in the history
  • Loading branch information
laspsandoval committed Aug 13, 2024
1 parent f6c5fdc commit b05f4fd
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions imap_processing/ultra/l1b/ultra_l1b_extended.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,14 @@ def get_front_x_position(start_type: ndarray, start_position_tdc: ndarray) -> nd
Parameters
----------
start_type : np.array
start_type : ndarray
Start Type: 1=Left, 2=Right.
start_position_tdc : np.array
start_position_tdc : ndarray
Start Position Time to Digital Converter (TDC).
Returns
-------
xf : np.array
xf : ndarray
X front position (hundredths of a millimeter).
"""
# Left and right start types.
Expand All @@ -50,7 +50,7 @@ def get_front_x_position(start_type: ndarray, start_position_tdc: ndarray) -> nd
# Calculate xf and convert to hundredths of a millimeter
xf = (xftsc * -start_position_tdc[indices] + xft_off) * 100

return np.array(xf)
return np.array(xf, dtype=np.float64)


def get_front_y_position(start_type: ndarray, yb: ndarray) -> tuple[ndarray, ndarray]:
Expand Down

0 comments on commit b05f4fd

Please sign in to comment.