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

armi-example-app fails due to missing THaveCoolantVel Parameter in thermalSolver.py #1111

Closed
bherlethtwo opened this issue Jan 21, 2023 · 8 comments
Assignees
Labels
bug Something is wrong: Highest Priority

Comments

@bherlethtwo
Copy link

bherlethtwo commented Jan 21, 2023

The armi-example-app fails due to missing THaveCoolantVel Parameter in thermalSolver.py in computeAxialCoolantTemperature().

The attribute is THaveCoolantVel is undefined.

@jakehader
Copy link
Member

Thanks for the bug report! @john-science this could be related to some recent TH parameter clean ups from the TH spring cleaning tickets/PRs

@john-science john-science self-assigned this Jan 23, 2023
@john-science john-science added the bug Something is wrong: Highest Priority label Jan 23, 2023
@john-science john-science changed the title armi-example-app fails due to missing THaveCoolentVel Parameter in thermalSolver.py computeAxialCoolantTemperature Function armi-example-app fails due to missing THaveCoolantVel Parameter in thermalSolver.py Jan 23, 2023
@john-science
Copy link
Member

First:

  1. I really want our armi-example-app to be working.
  2. I might move this ticket over to the armi-example-app repo.
  3. Sounds like I need to create some basic unit/integration tests for the example app.

The problem occurred on December 5th, during the week where I removed 100 unused Parameters, in this PR.

As far as I can tell, that Parameter was never used in ARMI or in the armi-example-app. We SET that parameter in the armi-example-app, but it's not used anywhere. I should be able to safely remove that line without it affecting anything. I'll do that.

@john-science
Copy link
Member

Well, this Issue is in the wrong repo, but oh well.

I have opened a PR for this here.

@john-science
Copy link
Member

@bherlethtwo Can you try now?

I tried after this PR, and it works for me.

Thanks!

@bherlethtwo
Copy link
Author

armi-example-app-issue
I've rebuilt everything using python version 3.9.13 and pulled from the 'main' branch of armi-example-app. Getting a validation error but I don't know any more than that. No logs in the myapp/logs directory.

@john-science
Copy link
Member

Okay, I believe I just fixed a bug to that affect:

-            inspector.cs[CONF_OUTLET_TEMPERATURE] < 0.0,
+            lambda: inspector.cs[CONF_OUTLET_TEMPERATURE] < 0.0,

Sorry, I JUST added that line of code the other day. That's a branch new bug I added to the system.

That should work now. Sorry for the hassle.

@bherlethtwo
Copy link
Author

Pulled from the main branch of armi-example-app repository. Now it works!

@john-science
Copy link
Member

Also, I just opened a new ticket in the armi-example-app. These problems are clearly because there are no automated tests that run the app to make sure it stays up-to-date and working with ARMI.

This is easily solved, as we did for the dragon-armi-plugin repo.

I don't know HOW we ended up with untested code, but if I can find some time tonight or this weekend, I should be able to spin up a quick test that runs the armiexample run anl-afci-177.yaml test shown in the README file. And we can not worry about these things cropping up any more.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something is wrong: Highest Priority
Projects
None yet
Development

No branches or pull requests

3 participants