Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MNT/FIX: Update wrappers with proper argument order #25

Merged
merged 1 commit into from
Jan 27, 2023

Conversation

greglucas
Copy link
Member

The Python side expects (date, lon, lat, z), which is what the Fortran subroutines is defined as, but the wrapper interface defintion had lon/z swapped (corresponding to the actual Fortran implementation).

This doesn't affect any results since the interface uses the argument order as inputs and they were all the same type and defined properly in the actual subroutine implementation.

closes #24

The Python side expects (date, lon, lat, z), which is what the
Fortran subroutines is defined as, but the wrapper interface defintion
had lon/z swapped (corresponding to the actual Fortran implementation).

This doesn't affect any results when using run since the interface uses
the argument order as inputs and they were all the same type. It does
affect calling the pygtd7d/pymsiscalc routines directly with keyword
arguments though as those weren't in the right order.

Added a test to make sure the keyword arguments are working as expected now.
@greglucas greglucas merged commit 34bb823 into SWxTREC:main Jan 27, 2023
@greglucas greglucas deleted the fix-pyf-wrapper branch January 27, 2023 22:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Longitude and altitude swapped
1 participant