Skip to content

Conversation

@nakul680
Copy link
Collaborator

  • Allows user to add an arbitrary block variable , which will be printed in block along with available variables.
  • Arbitrary variables are stored in a dict which users can add to or remove from or even clear completely.

@nakul680 nakul680 closed this Jul 16, 2025
@nakul680 nakul680 reopened this Jul 16, 2025
@haneug haneug assigned haneug and nakul680 and unassigned haneug Jul 16, 2025
@haneug haneug self-requested a review July 17, 2025 06:25
haneug
haneug previously requested changes Jul 17, 2025
Copy link
Contributor

@haneug haneug left a comment

Choose a reason for hiding this comment

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

Nice addition, please adjust the docstrings and check the autoapi!

Also please make sure that you are consistent with the other input methods in the input class: https://github.com/faccts/opi/blob/main/src/opi/input/core.py

So please use always the plural version and add the has and get methods

@haneug haneug added enhancement New feature or request side input Concerning writing ORCA input labels Sep 2, 2025
@haneug haneug added this to the 2.0.0 milestone Sep 2, 2025
@haneug haneug linked an issue Sep 2, 2025 that may be closed by this pull request
@haneug haneug dismissed their stale review September 5, 2025 09:10

Here, I am also dismissing my review because I will be on vacation. Otherwise I can review once I am back

@haneug
Copy link
Contributor

haneug commented Sep 19, 2025

@nakul680 please also update the number of the example and 'update branch' before the next review

Copy link
Contributor

@haneug haneug left a comment

Choose a reason for hiding this comment

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

Looks already nice I have some small comments

@nakul680 nakul680 requested a review from haneug September 24, 2025 08:21
@nakul680 nakul680 requested a review from timmyte September 30, 2025 10:07
Raises
-------
AttributeError
If normalization is not possible.
Copy link
Contributor

Choose a reason for hiding this comment

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

Are you sure this exception can be raised by this method?

@timmyte
Copy link
Contributor

timmyte commented Oct 9, 2025

@nakul680
Great work. This is very helpful feature ;)

@haneug
Copy link
Contributor

haneug commented Oct 13, 2025

I added a test for the new example and restored the deleted files in example045 since these are required for this special example!

@haneug haneug merged commit 31b22c2 into faccts:main Oct 13, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request side input Concerning writing ORCA input

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add arbitrary key-value pairs to blocks

3 participants