klaundal / lompe

MIT License
15 stars 9 forks source link

Added back to check that there is data when building inversion matrices #35

Closed jpreistad closed 6 months ago

jpreistad commented 9 months ago

For some reason 'if ds.coords['lat'].size > 1: #If there is data inside biggrid ' was removed on line 289. If it turns out that the dataset added has no data inside the biggrid region, the subsequent building of GTG and GTd will fail. Not sure why this was removed. I can not see anything elsewhere in the code that should prevent it from chrashing, which was why i came across this.

Changed also from the deprecated pd.append to pd.concat in dataloader.py. This was pointed out by @billetd in #31 . This fix should close that issue.