Skip to content

feat: add type checking for ncores and memory setters#261

Merged
haneug merged 7 commits into
faccts:mainfrom
nakul680:feat/257-add-type-check-for-ncores
Jul 14, 2026
Merged

feat: add type checking for ncores and memory setters#261
haneug merged 7 commits into
faccts:mainfrom
nakul680:feat/257-add-type-check-for-ncores

Conversation

@nakul680

@nakul680 nakul680 commented Jul 10, 2026

Copy link
Copy Markdown
Collaborator

Closes Issues

Closes #259

Description

  • Add type checks to the setters of ncores and memory properties in Input. Additionally it will be checked if the value given is positive.
  • Add unit tests to ensure no invalid values are accepted.

Release Notes

Added

@nakul680
nakul680 requested a review from a team as a code owner July 10, 2026 08:22
@nakul680 nakul680 self-assigned this Jul 10, 2026
@nakul680 nakul680 changed the title fix: add type checking for ncores and memory setters feat: add type checking for ncores and memory setters Jul 10, 2026

@haneug haneug left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thanks for the PR. Please correct the issue number in the Change log section and add it to the actual CHANGELOG.md file
Edit: Also the Change log section should only be one thing in Added. Something like Added: type checks for ncore and memory. That the feature comes with tests does not need to be mentioned in the Change-log.

Comment thread tests/unit/test_input_core.py
Comment thread src/opi/input/core.py
Comment thread src/opi/input/core.py
@haneug haneug added enhancement New feature or request side input Concerning writing ORCA input labels Jul 10, 2026
@nakul680
nakul680 requested a review from haneug July 13, 2026 08:56

@haneug haneug left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Please add the release notes to the CHANGELOG.md file. It seems that your release note is incomplete. Also remove the dots ... below Closes, the (Project adheres to Keep a Changelog; Every entry should start in upper-case and end with (#<pr-id>); Remove sections that don't apply), and the empty point in the description of your PR.

@haneug
haneug merged commit 27b84e1 into faccts:main Jul 14, 2026
6 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 type check for setters for ncores and memory

2 participants