refactor: Refactor the fortran parsing module.
Description
Refactor the fortran type parsing module
With the initial implementation of this module it was difficult to expose the extracted info from the types to higher in the application. This low-level info is now being held as a FortranDataType.
This also removed the Python-type hinting. It turns out that things are all pint.Quantity's or a Calculator in the case of a derived type. We can re-add some dimension checks later if deemed necessary, but the f2py exception handling of misshaped data has improved substantially.
Merge Request Steps
Please confirm that this pull request has done the following:
-
Tests added -
Documentation added (where applicable) -
Changelog item added to changelog/.
Edited by Jared Lewis