Skip to content

Load rec args#19

Open
prockenschaub wants to merge 6 commits intoeth-mds:mainfrom
prockenschaub:load-rec-args
Open

Load rec args#19
prockenschaub wants to merge 6 commits intoeth-mds:mainfrom
prockenschaub:load-rec-args

Conversation

@prockenschaub
Copy link
Copy Markdown
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?
@prockenschaub prockenschaub requested a review from nbenn October 4, 2023 17:41
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