Skip to content

[RFC] Qvectors rework#722

Draft
oerc0122 wants to merge 14 commits intoISISNeutronMuon:protosfrom
oerc0122:qvectors-rework
Draft

[RFC] Qvectors rework#722
oerc0122 wants to merge 14 commits intoISISNeutronMuon:protosfrom
oerc0122:qvectors-rework

Conversation

@oerc0122
Copy link
Copy Markdown
Collaborator

@oerc0122 oerc0122 commented Mar 17, 2025

Description of work
Implement independent new scheme for handling Q-Vectors without shells.

Fixes
Fixes #656
Fixes #458
Fixes #446
Fixes #705

To test
New tests in UnitTests/NewQVectors

@oerc0122 oerc0122 added the enhancement New feature or request label Mar 17, 2025
@oerc0122 oerc0122 self-assigned this Mar 17, 2025
"""
return recursive_dict(cls)

class RegisterFactory(ABC, Generic[T]):
Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

This can be broken out into a separate PR if we prefer.

@oerc0122 oerc0122 force-pushed the qvectors-rework branch 4 times, most recently from 3f52f3f to 58e7618 Compare March 18, 2025 14:22
@MBartkowiakSTFC
Copy link
Copy Markdown
Collaborator

Would you agree that the main reason for the RegisterFactory class is to register the subclasses explicitly and not automatically?

@oerc0122
Copy link
Copy Markdown
Collaborator Author

oerc0122 commented Mar 20, 2025

Would you agree that the main reason for the RegisterFactory class is to register the subclasses explicitly and not automatically?

Yeah, it also means you can have multiple aliases (if desired) and you can have more than one class per file allowing sensible grouping.

Scanning files is not terribly safe and also means that it's picking up temporary files from my editor.

@MBartkowiakSTFC
Copy link
Copy Markdown
Collaborator

Overall, the suggested changes are looking good. Especially with generators being generators, and the clear examples in the docstrings.

It looks promising in the context of issues #446 and #458 so definitely we should go ahead with these changes.

@oerc0122 oerc0122 force-pushed the qvectors-rework branch 2 times, most recently from 0a2cf2b to c0aeae9 Compare April 28, 2025 10:00
@oerc0122 oerc0122 force-pushed the qvectors-rework branch 2 times, most recently from c6d85b5 to 9406898 Compare May 7, 2025 14:44
@oerc0122 oerc0122 force-pushed the qvectors-rework branch 3 times, most recently from 119d54f to 079fe22 Compare May 20, 2025 14:32
@oerc0122 oerc0122 force-pushed the qvectors-rework branch 2 times, most recently from 62a8611 to 338fe38 Compare May 30, 2025 15:09
@oerc0122 oerc0122 force-pushed the qvectors-rework branch 3 times, most recently from bd8b995 to 87af74c Compare July 7, 2025 10:28
@oerc0122 oerc0122 added this to the MDANSE 2.1 milestone Oct 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

2 participants