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

Improved error reporting from ObservationView.__getitem__(). #380

Conversation

ChrisCummins
Copy link
Contributor

This patch improves the error reporting when computing an observation fails. First, if the service produces an unexpected number of observations, a ServiceError is raised, rather than the previous assertion. Second, if the environment reports that it has reached a terminal state, a ServiceError is raised, containing the error details produced by the environment.

This patch improves the error reporting when computing an observation
fails. First, if the service produces an unexpected number of
observations, a ServiceError is raised, rather than the previous
assertion. Second, if the environment reports that it has reached a
terminal state, a ServiceError is raised, containing the error details
produced by the environment.
@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Sep 8, 2021
@codecov-commenter
Copy link

Codecov Report

Merging #380 (cf45a24) into development (58b5831) will increase coverage by 0.02%.
The diff coverage is 100.00%.

Impacted file tree graph

@@               Coverage Diff               @@
##           development     #380      +/-   ##
===============================================
+ Coverage        85.81%   85.83%   +0.02%     
===============================================
  Files               87       87              
  Lines             4757     4764       +7     
===============================================
+ Hits              4082     4089       +7     
  Misses             675      675              
Impacted Files Coverage Δ
compiler_gym/views/observation.py 96.87% <100.00%> (+0.87%) ⬆️

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 58b5831...cf45a24. Read the comment docs.

@ChrisCummins ChrisCummins merged commit 5354ddd into facebookresearch:development Sep 8, 2021
@ChrisCummins ChrisCummins deleted the observation-error-message branch September 8, 2021 13:10
This was referenced Sep 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants