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

Fixed config habitat_hitl.episodes_filter='4' and episodes_filter episode order #1772

Merged
merged 1 commit into from
Jan 26, 2024

Conversation

henrysamer
Copy link
Contributor

@henrysamer henrysamer commented Jan 25, 2024

Fixed error when using config habitat_hitl.episodes_filter='4' and Fixed episodes_filter episode order not respected

Types of changes
config habitat_hitl.episodes_filter='4' Casting int->str

episodes_filter episode not in order To keep the sequence, the update uses a list instead of a set to preserve order, appends/extends to list instead of adding to set, and returns the final list

Local Testing
To test this change:

Checked out branch fix/episodes_filter
Modified config.yaml to set habitat_hitl.episodes_filter='4'
Ran training job and confirmed no errors when parsing filter
Modified config.yaml to complex filter string: "1000:2000:100 3000 4000 0:10:3"
Inspected order of episode ids before and after change and confirmed order matches filter string
Ran full pipeline with updated filter logic and confirmed no issues

…xed episodes_filter episode order not respected
@facebook-github-bot facebook-github-bot added the CLA Signed Do not delete this pull request or issue due to inactivity. label Jan 25, 2024
@henrysamer henrysamer self-assigned this Jan 25, 2024
Copy link
Contributor

@eundersander eundersander left a comment

Choose a reason for hiding this comment

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

Can you test this locally and describe how you tested this in the PR description? Otherwise LGTM!

@henrysamer henrysamer marked this pull request as ready for review January 26, 2024 15:15
@henrysamer henrysamer merged commit 66cba90 into main Jan 26, 2024
4 checks passed
@henrysamer henrysamer deleted the hitl-fix1 branch January 26, 2024 15:15
@henrysamer henrysamer restored the hitl-fix1 branch January 26, 2024 15:55
dannymcy pushed a commit to dannymcy/habitat-lab that referenced this pull request Jul 8, 2024
HHYHRHY pushed a commit to SgtVincent/habitat-lab that referenced this pull request Aug 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed Do not delete this pull request or issue due to inactivity.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants