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

Doc: Fixing several small issues #6392

Merged
merged 3 commits into from
Jun 28, 2024
Merged

Doc: Fixing several small issues #6392

merged 3 commits into from
Jun 28, 2024

Conversation

agoscinski
Copy link
Contributor

@agoscinski agoscinski commented May 15, 2024

Recursive workchain in code snippets that can theoretically not run has been fixed by using different name for the inner workchain

(Sorry did create a branch on aiida-core by accident instead of doing it in my fork)

@agoscinski agoscinski marked this pull request as draft May 15, 2024 11:49
@agoscinski agoscinski force-pushed the agoscinski-patch-1 branch from c9b59a3 to 353b5d1 Compare May 15, 2024 11:53
The recursive workchain in code snippets can theoretically not run and is just confusing to have as an example for a user. It has been fixed by using different name for the inner workchain.
@agoscinski agoscinski force-pushed the agoscinski-patch-1 branch from 12e31e5 to d16f6aa Compare May 15, 2024 14:03
@@ -1,4 +1,7 @@
from aiida.engine import WorkChain, append_
from aiida.plugins.factories import CalculationFactory

SomeOtherWorkChain = CalculationFactory('some.module')
Copy link
Contributor Author

@agoscinski agoscinski May 15, 2024

Choose a reason for hiding this comment

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

had to define this somewhere, because mypy was complaining

@agoscinski agoscinski marked this pull request as ready for review May 16, 2024 12:08
@agoscinski agoscinski marked this pull request as draft May 16, 2024 14:52
In the classes NodeCaching and ProcessNodeCaching the `is valid_cache` is
a property. To not render it with method brackets we use now the :attr:
sphinx directive in the.
@agoscinski
Copy link
Contributor Author

I will keep this PR as draft, since I will probably stumble on more small issues in the doc that I can fix here to reduce overhead of review and PR creation.

@agoscinski agoscinski changed the title Doc: Fixed recursive workchain in code snippets Doc: Fixing several small issues May 16, 2024
@sphuber sphuber marked this pull request as ready for review June 28, 2024 09:05
@sphuber sphuber self-requested a review June 28, 2024 09:05
Copy link
Contributor

@sphuber sphuber left a comment

Choose a reason for hiding this comment

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

Thanks @agoscinski since this has been open for a long time now and we are about to release, I am merging this.

@sphuber sphuber merged commit 6a3a59b into main Jun 28, 2024
18 of 20 checks passed
@sphuber sphuber deleted the agoscinski-patch-1 branch June 28, 2024 09:07
mikibonacci pushed a commit to mikibonacci/aiida-core that referenced this pull request Sep 3, 2024
The recursive workchain in code snippets can theoretically not run and 
is just confusing to have as an example for a user. It has been fixed by
using different name for the inner workchain.

In the classes `NodeCaching` and `ProcessNodeCaching` the
`is valid_cache` is a property. To not render it with method brackets,
the `:attr:` sphinx directive is used instead of `:meth:`.
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.

2 participants