-
Notifications
You must be signed in to change notification settings - Fork 134
Refactoring py3.10 error fix xyluo25 #144
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
Refactoring py3.10 error fix xyluo25 #144
Conversation
|
I'll let maintainers to respond to this, just wanted to flag that some changes here go against the subpackage template we use within PySAL and moving tests outside of |
Hi Martin, thank you for your fast response. I will move tests back to mgwr to avoid further conflicts. |
|
@martinfleis Hi Martin, do we have some central guideline on supporting python version regarding its life cycle? |
|
@Ziqi-Li @martinfleis Please find the attached file:change_log_xy.pdf for your reference. |
|
Hi @xyluo25 your tests are failed, can you make sure they pass so that we can have a closer look? Also please make sure that all the changes you proposed are essential, as we may want to have minimum changes to the code base. We can always have minor updates afterwards. |
Dear Ziqi, thank you for your prompt response and i will uopdate the code to pass the unittest soon. |
|
Hey, I am afraid that this PR is not reviewable in its current form. It is simply too large and opaque. Every time you contribute to an open source project like The issue with this is that it changes way too many things at the same time. If you look at the history of pull requests, they always focus on a single atomic change. Here, you do many things and it makes it extremely challenging to review it. From what I understand you:
And possibly something else. Every single of these points should be a Pull Request and for every single one there should be an issue and a discussion where maintainers agree what should be done and how. And every single of these changes should pass CI checks. As you can see, your changes are changing the values produced by MGWR which cannot happen. |
|
Thanks @martinfleis for the detailed suggestions. @xyluo25, I second what @martinfleis says. Maybe you can focus your first task/PR on solely python 3.10 support, and then update other things successively. Your current PR is too big and extensive. Could you also make sure every time your CI tests work on your own fork before pushing a new commit to this PR. |
@martinfleis @Ziqi-Li Thank you both for your insightful feedback. Based on your suggestions, I will ensure to initiate a separate Pull Request (PR) for each issue. As advised, "Each point will be addressed in its own Pull Request, accompanied by a corresponding issue and a discussion where maintainers can agree on the proposed actions and methodologies." Additionally, I will ensure that all new PRs pass the CI tests successfully. Moreover, I plan to prioritize updating our project to Python 3.10 before proceeding with other advanced implementations. Warm regards, |
Hi Developers,
I have updated the old code to a new version, utilizing Python 3.10 to refactor it. I have rectified several errors, added type hints to functions, and included docstrings for functions.
bests,
Xiangyong