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
Landlock country fix alternative #383
Conversation
c4e7fbf
to
1db3d62
Compare
Looks much more compact. Great! :)
|
My internet in the train is terrible. @pz-max could you do me the favour and try your config settings with the up to date version? |
@FabianHofmann I am now in the bus for 18h with okish internet connection. I tried to run the branch for both cases ['AT'] and ['AT','CZ']. The following error appeared:
I see one problem with the here suggested solution. I think we cannot just provide an empty dataframe that solves everything because we use the I think to avoid issues with the import:
To avoid any operational errors, e.g. when geopandas function are intended to be executed on the empty file:
In future, it might make also sense to distentangle any onshore & offshore functions e.g. within the script or even with the rules (build_shapes -> build_offshore_shape + build_onshore_shape).... Atm some of them are mixxed up. But this is probably only a nice to have. |
11257d7
to
7bc625d
Compare
7bc625d
to
c42d2bd
Compare
@pz-max it appears that the new geopandas version supports writing out empty geojsons! The only downside: the reimported empty dataframe has lost all columns but the It runs through for me now. However, one has to disable offshore tech if no offshore shapes are existent. Otherwise the workflow will raise an error. I prefer this implementation over the other approach as it is cleaner. Especially, getting rid of the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This solution looks good! Approved to be merged.
Closes #382
closes #265
Changes proposed in this Pull Request
Checklist
envs/environment.yaml
andenvs/environment.docs.yaml
.config.default.yaml
,config.tutorial.yaml
, andtest/config.test1.yaml
.doc/configtables/*.csv
and line references are adjusted indoc/configuration.rst
anddoc/tutorial.rst
.doc/release_notes.rst
is amended in the format of previous release notes.