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

Implement swmm-stride using c-code #481

Merged
merged 2 commits into from
Dec 11, 2023
Merged

Conversation

karosc
Copy link
Member

@karosc karosc commented Sep 13, 2023

Closes #500

This PR makes the default PySWMM.swmm_stride() method reference the c-code in swmm.toolkit.solver.swmm_stride()

However, if a user is using swmm_toolkit < 0.15.0, the old python implementation of swmm_stride is monkey patched into the PySWMM class, keeping this version of pyswmm backwards compatible with older versions of swmm.toolkit

@bemcdonnell
Copy link
Member

@karosc is this good to go for review? I just looked at it and and keen to approve it. It is great work. PYSWMM-2.x here we go! I have a few changes that I am looking to make to the LID module and the OUT reader that will break some things... I'm hoping to get them through into pyswmm-2 before we make the release

@karosc
Copy link
Member Author

karosc commented Sep 27, 2023

@bemcdonnell, from my point of view our next release will be 2.0. We can add to develop until we get there.

@bemcdonnell
Copy link
Member

@karosc are we still using flake8 to lint the code?

Copy link
Member

@bemcdonnell bemcdonnell left a comment

Choose a reason for hiding this comment

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

@karosc I think this is good. I'm just thinking the code needs to be linted with flake8. It looks like there are a few function args without spaces between the arguments

@bemcdonnell bemcdonnell changed the base branch from develop to develop-v2.x December 11, 2023 02:05
@bemcdonnell bemcdonnell added this to the pyswmm-v2.0 milestone Dec 11, 2023
@bemcdonnell
Copy link
Member

@karosc Again, fantastic work. I am going to make this merge into develop-v2.x branch.

@bemcdonnell bemcdonnell merged commit b359a2f into develop-v2.x Dec 11, 2023
28 checks passed
@bemcdonnell bemcdonnell deleted the dev_swmm_stride branch April 12, 2024 03:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants