GeoscienceAustralia / PyRate

A Python tool for estimating velocity and time-series from Interferometric Synthetic Aperture Radar (InSAR) data.
https://geoscienceaustralia.github.io/PyRate/
Apache License 2.0
200 stars 70 forks source link

Raise exception when too many header files are provided #337

Closed adeane-ga closed 3 years ago

adeane-ga commented 3 years ago

Very small PR to simply generate a clearer error message for when there are too many parameter files given to PyRate ini the lists.

adeane-ga commented 3 years ago

Just added unit test to check if manage_headers() will throw exception when input IFG list has more than two files:

https://github.com/GeoscienceAustralia/PyRate/blob/75bc55be3ad885ad7296189177028943b9283dfc/tests/test_gamma.py#L178-L187