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

Missing functionalities for artefact store #356

Open
hiker opened this issue Nov 25, 2024 · 0 comments
Open

Missing functionalities for artefact store #356

hiker opened this issue Nov 25, 2024 · 0 comments
Labels
BOM Issues copied from the BOM fork

Comments

@hiker
Copy link
Collaborator

hiker commented Nov 25, 2024

Currently, artefacts.py does not explicitly have methods for creating a new collection and filtering collections with filenames. So this additional method is needed for class ArtefactStore:

def filter_create_new(self, existing_collection: Optional [Union[str, ArtefactSet]], filenames: Optional[Union[Path, str, Iterable[Path], Iterable[str]]], new_collection: str):

This would enable the users to

  1. Specify the files they want with filenames, filter an existing collection with the filenames and then return a new collection that is a subset of the existing collection.
  2. Create an empty collection if the optional arguments are not set.

User cases of this would be like pass a collection to sourcegetter of a new psyclone step.

@hiker hiker added the BOM Issues copied from the BOM fork label Nov 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
BOM Issues copied from the BOM fork
Projects
None yet
Development

No branches or pull requests

1 participant