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

Simplify the if-elses inside the event manager apply method #948

Merged
merged 38 commits into from
Sep 11, 2024

Conversation

Mayankm96
Copy link
Contributor

@Mayankm96 Mayankm96 commented Sep 6, 2024

Description

The if-else-continue logic inside the event manager has become scary. This MR simplifies it and keeps the term call local to the if statements. I hope this should help with the readability.

Type of change

  • New feature (non-breaking change which adds functionality)
  • This change requires a documentation update

Checklist

  • I have run the pre-commit checks with ./isaaclab.sh --format
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • I have updated the changelog and the corresponding version in the extension's config/extension.toml file
  • I have added my name to the CONTRIBUTORS.md or my name already exists there

Base automatically changed from fix/env-seed to main September 10, 2024 05:33
@Mayankm96
Copy link
Contributor Author

Mayankm96 commented Sep 10, 2024

@jsmith-bdai @jtigue-bdai - Can either of you review as well please?

Copy link
Collaborator

@jtigue-bdai jtigue-bdai left a comment

Choose a reason for hiding this comment

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

Looks good. I agree it helps to have the func calls closer to the logic.

@Mayankm96 Mayankm96 merged commit a7dbc84 into main Sep 11, 2024
2 of 3 checks passed
@Mayankm96 Mayankm96 deleted the fix/event-man-logic-clean branch September 11, 2024 11:46
iamdrfly pushed a commit to iamdrfly/IsaacLab that referenced this pull request Nov 21, 2024
…m#948)

# Description

The if-else-continue logic inside the event manager has become scary.
This MR simplifies it and keeps the term call local to the if
statements. I hope this should help with the readability.

## Type of change

- New feature (non-breaking change which adds functionality)
- This change requires a documentation update

## Checklist

- [x] I have run the [`pre-commit` checks](https://pre-commit.com/) with
`./isaaclab.sh --format`
- [ ] I have made corresponding changes to the documentation
- [x] My changes generate no new warnings
- [ ] I have added tests that prove my fix is effective or that my
feature works
- [ ] I have updated the changelog and the corresponding version in the
extension's `config/extension.toml` file
- [x] I have added my name to the `CONTRIBUTORS.md` or my name already
exists there
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants