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

Merge XYZ into master #4

Merged
merged 19 commits into from
Nov 24, 2022
Merged

Merge XYZ into master #4

merged 19 commits into from
Nov 24, 2022

Conversation

acerioni
Copy link
Member

@acerioni acerioni commented Nov 1, 2022

Main changes:

  • Added XYZ connector
  • Functions that are used by both MIL.py, WMS.py and XYZ.py were moved to misc.py.

Copy link
Member

@GwenaelleSa GwenaelleSa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Il faut corriger le nom des tuiles pour l'AOI dans config_GE.yaml, sinon, le détecteur d'objets ne peut pas tourner.
Les autres commentaires concernent plutôt des détails

helpers/MIL.py Outdated Show resolved Hide resolved
scripts/generate_tilesets.py Outdated Show resolved Hide resolved
helpers/MIL.py Show resolved Hide resolved
aoi_tiles_gdf['id']='('+aoi_tiles_gdf['id']
if not aoi_tiles_gdf['id'].str.endswith(')').all():
aoi_tiles_gdf['id']=aoi_tiles_gdf['id']+')'

return
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Puisque j'ai modifié le code pour que l'id soit corrigé si des parenthèses manquent, faudrait-il mettre return aoi_tiles_gdf? Est-ce que cela risquerait de déranger les raise Exceptions?

Copy link
Member Author

@acerioni acerioni Nov 14, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Well... should the id be badly formatted, an exception would be raised and your code wouldn't be executed.

  • Do we want the code to support IDs formatted as either "(<x>, <y>, <z>)" or "<x>, <y>, <z>"?
  • In which case the ID would be formatted as "<x>, <y>, <z>"?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In the current configuration, the script does not raise an exception when the id is formatted without the parenthesis. That why we should change the function to raise an error or add the parenthesis

@acerioni acerioni merged commit 162c0ac into master Nov 24, 2022
@acerioni acerioni deleted the XYZ branch November 30, 2022 09:53
cleherny pushed a commit that referenced this pull request Feb 16, 2023
Merge XYZ into master

Former-commit-id: 162c0ac
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