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

Load rec args #19

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
Open

Conversation

prockenschaub
Copy link
Collaborator

See #18 for a detailed description of the issues addressed in this PR.

Description of changes

This PR adds the ability to pass arguments to lower-level concepts in recursive concepts. In order to do so, this PR does two things:

  1. It allows collect_dots to deal with (=ignore) arguments in ... that are not concepts. The trade-off is that collect_dots can now only deal with named concepts. However, this does not seem to be a huge problem, since except for two tests (that I changed), all functions pass their concepts with corresponding names.
  2. In load_concepts.rec_cncpt, it passes ... on to load_concepts.itm (via load_one_concept_helper).

Note

load_concepts.itm currently checks for elements in ... that aren't keep_components and throws an error if they are present. This behaviour has been removed in this PR to silence unnecessary warnings. However, there might be a good reason for having the warning there and perhaps a different solution must be found.

Note: this currently needs to remove a warning from load_concepts.itm, which may not be desired. Maybe there is another way to prevent unnecessary warnings in the case of additional arguments to load_concepts?
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.

Recursively passing arguments to lower-level concepts
1 participant