-
Notifications
You must be signed in to change notification settings - Fork 3
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
Make variable names more explicit. #88
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The renaming in generate_initial_state
is fishy, but everything else looks good to merge.
machetli/pddl/files.py
Outdated
@@ -11,18 +11,18 @@ | |||
DIN = " " # double indentation | |||
|
|||
|
|||
def generate_initial_state(domain_filename: str, problem_filename: str) -> dict: | |||
def generate_initial_state(filename: str, filename: str) -> dict: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks problematic. I'd stick with the old names here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Indeed, this is unintentional. Must have happened when I auto-renamed stuff and I didn't realize. Thanks for catching this!
machetli/pddl/files.py
Outdated
""" | ||
return { | ||
KEY_IN_STATE: pddl_parser.open(domain_filename=domain_filename, | ||
task_filename=problem_filename) | ||
KEY_IN_STATE: pddl_parser.open(filename=filename, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This keyword argument should probably also keep its name.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, definitely.
No description provided.