jonghyunharrylee / pyPCGA

pyPCGA: fast and scalable inverse modeling approach
BSD 3-Clause "New" or "Revised" License
23 stars 15 forks source link

Improved handling of input array dimensions. #12

Closed Mahtaw closed 6 years ago

Mahtaw commented 6 years ago

If variables are passed to PCGA as (n,) arrays instead of (n,1) arrays it will result confusing errors. This pull request improves the handling of input arrays to make sure they are of the correct dimensionality. This is also true for the output from the forward model function.

Additionally I have added support for Mac in the example_inv_mf example.