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

Display unit for input param only if it is type Real or std::vector<Real> #29116

Open
wants to merge 1 commit into
base: next
Choose a base branch
from

Conversation

gambka
Copy link
Contributor

@gambka gambka commented Nov 21, 2024

Refs #27352 and #29115.

@moosebuild
Copy link
Contributor

Job Documentation, step Docs: sync website on a5484ff wanted to post the following:

View the site here

This comment will be updated on new commits.

@loganharbour
Copy link
Member

Do we not have unit tests for this?

@moosebuild
Copy link
Contributor

Job Coverage, step Generate coverage on a5484ff wanted to post the following:

Framework coverage

8a5faa #29116 a5484f
Total Total +/- New
Rate 85.14% 85.14% -0.00% -
Hits 107324 107323 -1 0
Misses 18727 18728 +1 0

Diff coverage report

Full coverage report

Modules coverage

Coverage did not change

Full coverage reports

Reports

This comment will be updated on new commits.

@gambka
Copy link
Contributor Author

gambka commented Nov 21, 2024

Do we not have unit tests for this?

There are some unit tests for checking the appSyntax extension and addition of the unit parameter. With this change I'm currently missing something as the tests return an exception in debug that I'm looking into. Currently, the docs show 'unit: (no unit assumed) for every single input parameter regardless of its type.

@gambka
Copy link
Contributor Author

gambka commented Nov 21, 2024

I found the issue. The test currently creates a Diffusion Kernel object and only tests on the 'variable' input parameter, which now no longer has a unit specified so it asserts. I'll update/add a new test.

html.String(p, content='(no unit assumed)')
else:
html.String(p, content=doc_unit)
if cpp_type == "double" or cpp_type == "std::vector<double>":
Copy link
Contributor

Choose a reason for hiding this comment

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

let's also keep vectors of vectors and vectors of vectors and vectors.
and any map that ends with Real as the item or the key (terrible idea for the key)

Copy link
Contributor

Choose a reason for hiding this comment

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

axctually, let's move this if condition to the "if not doc_unit" clause,
and always obey the user specification of a unit

@GiudGiud GiudGiud self-assigned this Nov 23, 2024
@loganharbour
Copy link
Member

loganharbour commented Nov 24, 2024

Do we not have unit tests for this?

There are some unit tests for checking the appSyntax extension and addition of the unit parameter. With this change I'm currently missing something as the tests return an exception in debug that I'm looking into. Currently, the docs show 'unit: (no unit assumed) for every single input parameter regardless of its type.

Sounds good. Let me know if you need another hand

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.

4 participants