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

refactor: remove utils module (#128) #319

Merged
merged 32 commits into from
Aug 7, 2023

Conversation

RaczeQ
Copy link
Collaborator

@RaczeQ RaczeQ commented Jul 20, 2023

No description provided.

@RaczeQ RaczeQ linked an issue Jul 20, 2023 that may be closed by this pull request
@RaczeQ RaczeQ marked this pull request as draft July 20, 2023 12:04
@codecov
Copy link

codecov bot commented Jul 20, 2023

Codecov Report

Merging #319 (82052bf) into main (3acc7a6) will decrease coverage by 0.38%.
The diff coverage is 87.40%.

@@            Coverage Diff             @@
##             main     #319      +/-   ##
==========================================
- Coverage   92.23%   91.85%   -0.38%     
==========================================
  Files          61       60       -1     
  Lines        2023     2113      +90     
==========================================
+ Hits         1866     1941      +75     
- Misses        157      172      +15     
Flag Coverage Δ
macos-latest-python3.10 ?
macos-latest-python3.11 91.33% <79.25%> (?)
ubuntu-latest-python3.10 90.48% <68.14%> (-1.76%) ⬇️
ubuntu-latest-python3.11 90.48% <68.14%> (?)
ubuntu-latest-python3.8 90.46% <68.14%> (-1.76%) ⬇️
ubuntu-latest-python3.9 90.46% <68.14%> (-1.76%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files Changed Coverage Δ
srai/_optional.py 100.00% <ø> (ø)
srai/_typing.py 100.00% <ø> (ø)
srai/embedders/_base.py 72.09% <0.00%> (ø)
srai/embedders/_pytorch_stubs.py 0.00% <ø> (ø)
srai/loaders/download.py 36.36% <ø> (ø)
srai/regionalizers/geocode.py 62.50% <ø> (ø)
srai/embedders/hex2vec/neighbour_dataset.py 96.49% <50.00%> (ø)
srai/h3.py 84.37% <84.37%> (ø)
srai/embedders/gtfs2vec/embedder.py 80.73% <100.00%> (ø)
srai/embedders/gtfs2vec/model.py 100.00% <100.00%> (ø)
... and 19 more

Calychas
Calychas previously approved these changes Jul 20, 2023
wkb = [geometry.wkb]

h3_indexes = wkb_to_cells(
wkb, resolution=h3_resolution, all_intersecting=buffer, flatten=True
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I really like the all_intersecting parameter name. It seems more descriptive than buffer in my opinion. We could replace it in H3 and S2 Regionalizers.

Copy link
Collaborator

Choose a reason for hiding this comment

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

neither buffer nor all_intersecting is descriptive enough for me hah. Do we have a better alternative?

@RaczeQ RaczeQ marked this pull request as ready for review August 7, 2023 19:43
Calychas
Calychas previously approved these changes Aug 7, 2023
@RaczeQ RaczeQ merged commit 325c556 into main Aug 7, 2023
@RaczeQ RaczeQ deleted the 128-refactor-code-style-to-avoid-antipatterns branch August 7, 2023 23:18
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.

Refactor code style to avoid antipatterns
2 participants