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

Issue 87 #90

Merged
merged 4 commits into from
Sep 30, 2023
Merged

Issue 87 #90

merged 4 commits into from
Sep 30, 2023

Conversation

francescofuggitti
Copy link
Collaborator

Fixes

This PR solves the issue #87

Types of changes

What types of changes does your code introduce?
Put an x in the boxes that apply

  • Bugfix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

Checklist

Put an x in the boxes that apply.

  • I have read the CONTRIBUTING doc
  • Lint and unit tests pass locally with my changes
  • I have added tests that prove my fix is effective or that my feature works

@codecov-commenter
Copy link

codecov-commenter commented Sep 27, 2023

Codecov Report

Merging #90 (d61e692) into main (f54e187) will decrease coverage by 0.02%.
The diff coverage is 88.23%.

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main      #90      +/-   ##
==========================================
- Coverage   90.78%   90.77%   -0.02%     
==========================================
  Files          24       24              
  Lines        1389     1398       +9     
  Branches      245      247       +2     
==========================================
+ Hits         1261     1269       +8     
  Misses         93       93              
- Partials       35       36       +1     
Flag Coverage Δ
unittests 90.77% <88.23%> (-0.02%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files Coverage Δ
pddl/_validation.py 92.12% <100.00%> (+0.06%) ⬆️
pddl/parser/domain.py 83.17% <100.00%> (+0.31%) ⬆️
pddl/requirements.py 87.50% <83.33%> (-2.50%) ⬇️

Copy link
Contributor

@haz haz left a comment

Choose a reason for hiding this comment

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

Just one minor question...

Requirements.NEG_PRECONDITION,
Requirements.DIS_PRECONDITION,
Requirements.EQUALITY,
Requirements.QUANTIFIED_PRECONDITION,
Copy link
Contributor

Choose a reason for hiding this comment

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

I guess quantified preconditions covers both existential and universal, but under that path, wouldn't STRIPS cover all those here?

Requirements.TYPING,

Actually, I'm a bit confused as to why those are all included in STRIPS...

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yes, quantified preconditions covers both universal and existential.

Thanks for pointing out the issue. I think it all depends on what reference we are following and what we want to achieve. At this moment, STRIPS covers some of the other requirements but shouldn't (based on the original version and the BNF). I don't remember why we put such additional requirements under STRIPS, but most probably to parse some domains that are not fully compliant with the original grammar... ?

Copy link
Contributor

Choose a reason for hiding this comment

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

I'd probably flag it as an issue for the PDDL, and keep the pddl lib pure and true to the BNF. Want to tackle the slight rewrite of the STRIPS set in this PR, or open a new one?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Agree! I can do that here..

Copy link
Contributor

@haz haz left a comment

Choose a reason for hiding this comment

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

Lgtm!

@haz haz merged commit fe1013b into main Sep 30, 2023
9 checks passed
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.

None yet

3 participants