-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Open
Labels
Description
Describe the bug
Line 199 in cc75255
| pos = coordinates * np.array(m_per_deg_lat, m_per_deg_lon) |
np.array. The second arg for np.array is the dtype however.
pos = coordinates * np.array(m_per_deg_lat, m_per_deg_lon)What will happen with the current implementation is that m_per_deg_lat will be silently used as a multiplier for both axes.
# resulting broadcast
lat * m_per_deg_lat
lon * m_per_deg_lat # <- this is wrong. it should be using the lon insteadExpected behavior
Correct implementation is as follows:
pos = coordinates * np.array([m_per_deg_lat, m_per_deg_lon])This could also affect the unit tests, but I didn't check.
adriesse