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

Splitting up oi_inclusive_mobility() function #129

Closed
GretaTimaite opened this issue Sep 2, 2022 · 4 comments
Closed

Splitting up oi_inclusive_mobility() function #129

GretaTimaite opened this issue Sep 2, 2022 · 4 comments
Labels
documentation Improvements or additions to documentation question Further information is requested

Comments

@GretaTimaite
Copy link
Collaborator

This is a follow up to my comment on #116.

I've noticed that some of the stuff James and I have done (e.g., presence of lighting) have started to overlap. For example, oi_inclusive_mobility returns lit column as it's important for inclusive spaces, but James created a separate function for it as well. This, I believe creates some redundancy and unnecessary confusion as the current amount of OSM data on lighting does not permit saying more than that the lighting is present, not, or maybe.

Thus, I'm wondering if it would make sense to split up oi_inclusive_mobility(), so instead of having a function that returns 6 columns in bunch, we would have a function for each column. If not, then I guess we need to make it clear in the documentation why oi_inclusive_mobility() returns lit column as well as why we have, e.g., oi_lit() function and that both basically do the same (James include "maybe" option but I do not as basically I treat everything as "non-existing" unless it can be deduced with certainty that a feature exists).

Any thoughts @hulsiejames, @Robinlovelace?

@GretaTimaite GretaTimaite added documentation Improvements or additions to documentation question Further information is requested labels Sep 2, 2022
@GretaTimaite
Copy link
Collaborator Author

GretaTimaite commented Sep 2, 2022

To do if a function ceases to exist in its current form:

  • update sotm2022 code

@Robinlovelace
Copy link
Contributor

I think splitting things into modular components is a good thing, 👍 to this!

@hulsiejames
Copy link
Collaborator

hulsiejames commented Sep 2, 2022

Yes, I am a big advocate for splitting this into multiple sub-functions!

Additionally, for clarity:

James include "maybe" option but I do not as basically I treat everything as "non-existing" unless it can be deduced with certainty that a feature exists

The value of "maybe" implies that there is a lack of data to distinguish the value with any accuracy as being "yes" or "no" - so perhaps I should change this to "unknown" or "missing data"

hulsiejames added a commit that referenced this issue Sep 21, 2022
hulsiejames added a commit that referenced this issue Sep 22, 2022
Splitting IM function into 5 separate functions #129
@hulsiejames
Copy link
Collaborator

hulsiejames commented Sep 22, 2022

104b508 has achieved this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants