-
Notifications
You must be signed in to change notification settings - Fork 927
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
Discuss: Moving examples to examples repo #963
Comments
Previous discussion at #134. |
Another alternative is to create a separate |
My main concern with putting examples in a submodule is that submodules are hard to use even for moderately-experienced Git / GitHub users. Since the examples serve as de-facto tests, a contributor making an API change or adding a feature will probably also update the examples. Requiring the contributor to figure out submodules and keep their example branch and core branches in sync introduces a significant barrier to entry and opportunity for confusion and error. |
RE: #735 - We need to get this examples move prioritized -- Unless someone else wants to take on, I will take on POC before next dev session. Let me know if there are any concerns/considerations related to how this is done. If someone feels passionate about taking this on -- feel free to take it -- I probably won't get started or look at until the weekend. |
@jackiekazil No issues here I will add it to the dev notes |
RE: #1451 - Time to dust this old ticket off!
|
Moving everything sounds good to me. It will make it easier for me to implement #1406, where I can just download the tarball of the GH repo from a URL, instead of having to deal with setup.py's
The PR conflict is inevitable, it seems. Better sooner than much later. |
@rht I think the PR conflict is the reason this has been sitting around since 2020. |
There are 6 PRs which will have merge conflicts:
I have checked all of them. Resolving the conflicts should be manageable. |
It would probably make the most sense to have those PRs merged before doing the transfer. @rht do you think that is feasible? At least the non draft PRs |
WIPs
Things I did so far in the WIPs:
|
@Corvince I haven't looked thru everything -- but maybe we try to merge things that aren't draft or stale? (not sure which of the PRs fall under this -- none of them look like things that would untangled quickly.) |
Related: Examples: To pin mesa version or not to pin? #1530 |
Drafts:
Actionable:
|
Note that #1228 is no longer feasible with all the examples being moved to a separate repo. It's still feasible, but either with code duplication, or we leave a few examples in projectmesa/mesa. The use case I had in mind was for super quick demo in a classroom setting, something along the line of |
While migrating the examples shall they be separated into individual folders, like the Models Library in NetLogo? Mesa-Geo examples can later be grouped into a |
That sounds good to me. |
Do we want do to... examples/ OR examples/ something else? |
Thinking about this -- I feel like maybe we should push the move through, then worry about how to organize the GIS files, so people can start submitting PRs against the new structure. |
Yes, that makes sense regarding with doing the folder restructuring later. |
I was thinking about something like this examples/
├─ social_science/
│ ├─ schelling/
│ └─ ...
├─ economics/
│ ├─ boltzmann_wealth_model/
│ └─ ...
├─ gis/
│ ├─ geo_schelling/
│ └─ ...
├─ ... which needs going through each existing model and assign it a category.
Sure! |
Updated Todo list:
RE: Folder structure - that is for future. |
^^ Everything above is done. I am moving the two PRs related to this to review. There are a few more things that popped up, but I think they should be deferred to after the initial version of this is merged. Related PRs:
Things that still need to happen post merge unless we decide to bump up to pre-merge:
|
PRs are merged -- thank you @rht RE: # 3 above -- RE: 1, 2, 4, 5 -- Is there anything else that needs to be ticketed? |
Agreed on closing. |
A long long long time ago we talked about moving examples over to the examples repo.
I feel like we should go ahead and do that. The more the examples grow the bigger the main project will get.
Examples repo: https://github.com/projectmesa/mesa-examples/
People have been submitting issues and PRs against this repo.
So either we kill or officially move. I feel like it makes sense to kill and I would like to prioritize doing this.
What moving looks like...
Thoughts?
The text was updated successfully, but these errors were encountered: