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

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

Merged
merged 2 commits into from
May 10, 2024

Conversation

jpreistad
Copy link
Collaborator

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.

@klaundal klaundal merged commit ed1d978 into main May 10, 2024
2 checks passed
@klaundal klaundal deleted the check-for-no-data branch May 10, 2024 19:16
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.

2 participants