-
Notifications
You must be signed in to change notification settings - Fork 15
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
Added discrete states (Closes #117) #178
Conversation
Thank you for opening this PR. Each PR into dev requires a code review. For the code review, look at the following:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As mentioned during the PR review meeting, adding a note on what the expected behavior should be for the sequential discrete states if the first state is 0 and we subtract from it (should it throw an error, stay at 0, or loop circularly to the highest state?)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Jupyter notebook runs and examples all make sense - excited to see discrete states added to ProgPy.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a few minor suggestions and a question about the small_rotorcraft.py changes. Also, I'm getting a failed test on line 49 of test_discrete_states.py. Sounds like @lymichelle21 didn't get the same error so let's debug together on Wednesday
Ah I see the error in This is the following error with the sequential transition lower bound (and similar upper bound) test. This is likely because the current implementation doesn't raise a value error when hitting the bounds (as demonstrated in
|
Tests all run successfully :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Fixed typos Co-authored-by: Katy Jarvis Griffith <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good!
Closes #177
Adds the option of discrete states to ProgPy. Discrete states are implemented by initializing a state using the Discrete State Object. Created a TankModel to represent this.
This required some extra logic to support, especially changing the way containers work
I also added a jupyter notebook to demonstrate this feature. This notebook will later be merged into the numbered notebooks