Skip to content

heuristic patch#706

Merged
unbohn merged 1 commit into
isofit:devfrom
pgbrodrick:heur_patch
Jun 2, 2025
Merged

heuristic patch#706
unbohn merged 1 commit into
isofit:devfrom
pgbrodrick:heur_patch

Conversation

@pgbrodrick

Copy link
Copy Markdown
Collaborator

This is a stopgap patch to address #705.

A better solution would be to leverage RT.calc_RT_quantities, but this serves to get us back operating in the short term.

@pgbrodrick pgbrodrick marked this pull request as ready for review May 31, 2025 02:13
@pgbrodrick pgbrodrick requested a review from evan-greenbrg May 31, 2025 02:13

@evan-greenbrg evan-greenbrg left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Great catch. The issue was clear as day as soon as you pointed out the code block. Short term if statement looks fine to me. It's in line with how we handle 1c vs 4c throughout.

I agree that populating the return from RT.get_shared_rtm_quantities in 1c vs 4c case should be made more robust. There should be a way to structure the returning dict in a way where the risk of divide by zero errors are minimized.

@unbohn

unbohn commented Jun 2, 2025

Copy link
Copy Markdown
Collaborator

Thanks for catching this, @pgbrodrick! Important patch, merging now.

@unbohn unbohn merged commit fd63adb into isofit:dev Jun 2, 2025
17 checks passed
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.

3 participants