Skip to content

do not append empty model name#15

Merged
researcherben merged 1 commit into
lpsmodsimteam:masterfrom
tjstavenger-pnnl:correct-device-empty-model
May 9, 2026
Merged

do not append empty model name#15
researcherben merged 1 commit into
lpsmodsimteam:masterfrom
tjstavenger-pnnl:correct-device-empty-model

Conversation

@tjstavenger-pnnl

@tjstavenger-pnnl tjstavenger-pnnl commented May 7, 2026

Copy link
Copy Markdown
Contributor

When we made devices with an empty model, we would get DeviceName_ for get_category() instead of just DeviceName. This PR prevents the code from trying to append an empty model name (and therefore an extra _), including empty strings or strings with only whitespace. Previously it only checked for None.

I added a test case for this change, and while running all tests found that some are failing for me locally. The new test I added passed locally. I have not tried addressing the other failures.

@researcherben researcherben merged commit b9951c5 into lpsmodsimteam:master May 9, 2026
0 of 2 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.

2 participants