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

One less bridge #418

Merged
merged 4 commits into from
Jul 9, 2020
Merged

One less bridge #418

merged 4 commits into from
Jul 9, 2020

Conversation

erikwijmans
Copy link
Contributor

Motivation and Context

Use inheritance instead of a member variable for the instance of habitat-sim. This alleviates the needs for _sim._sim to get to methods where a bridge hasn't been built.

The one downside is that inheritance won't allow both habitat_sim.Simulator and HabitatSimulator to have their existing self.config. The one in for HabitatSimulator was renamed hab_config.

How Has This Been Tested

The existing tests

Types of changes

  • Docs change / refactoring / dependency upgrade
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.
  • I have completed my CLA (see CONTRIBUTING)
  • I have added tests to cover my changes.
  • All new and existing tests passed.

@erikwijmans erikwijmans requested a review from mathfac June 18, 2020 21:17
@facebook-github-bot facebook-github-bot added the CLA Signed Do not delete this pull request or issue due to inactivity. label Jun 18, 2020
@mathfac
Copy link
Contributor

mathfac commented Jul 7, 2020

Really like the change! Can we use hab_config => habitat_config 4 characters more , but better readability. Thank you!

@codecov
Copy link

codecov bot commented Jul 7, 2020

Codecov Report

Merging #418 into master will decrease coverage by 0.01%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #418      +/-   ##
==========================================
- Coverage   76.33%   76.32%   -0.02%     
==========================================
  Files         108      108              
  Lines        7670     7665       -5     
==========================================
- Hits         5855     5850       -5     
  Misses       1815     1815              
Impacted Files Coverage Δ
habitat/datasets/pointnav/pointnav_generator.py 87.75% <ø> (ø)
habitat/core/simulator.py 78.61% <100.00%> (+0.13%) ⬆️
...abitat/sims/habitat_simulator/habitat_simulator.py 94.41% <100.00%> (-0.16%) ⬇️
habitat/tasks/nav/shortest_path_follower.py 73.17% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update fab6de9...7eb696d. Read the comment docs.

@erikwijmans erikwijmans merged commit 27483d0 into master Jul 9, 2020
@erikwijmans erikwijmans deleted the bridge-destruction branch July 9, 2020 14:25
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.

4 participants