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

Make variable names more explicit. #88

Merged
merged 3 commits into from
Sep 28, 2023

Conversation

ClemensBuechner
Copy link
Contributor

No description provided.

Copy link
Member

@FlorianPommerening FlorianPommerening left a 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.

@@ -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:
Copy link
Member

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.

Copy link
Contributor Author

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!

"""
return {
KEY_IN_STATE: pddl_parser.open(domain_filename=domain_filename,
task_filename=problem_filename)
KEY_IN_STATE: pddl_parser.open(filename=filename,
Copy link
Member

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.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, definitely.

@ClemensBuechner ClemensBuechner merged commit 286df5c into aibasel:main Sep 28, 2023
@ClemensBuechner ClemensBuechner deleted the issue58 branch September 28, 2023 09:42
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.

planning: rename sf, df, pf (probably stand for SAS-file, domain-file, and PDDL-file, respectively)
2 participants