Skip to content

Added Version Retrieval to LIFU Interface#305

Closed
georgevigelette wants to merge 1 commit into
mainfrom
lifu_sdk_update
Closed

Added Version Retrieval to LIFU Interface#305
georgevigelette wants to merge 1 commit into
mainfrom
lifu_sdk_update

Conversation

@georgevigelette
Copy link
Copy Markdown
Contributor

Highlights

added SDK version retrieval
updated watertank script not to output prints every time it calls get temperature

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

The changes to test_watertank.py don't seem related to #305. Can you remove them from this PR?

import openlifu as m
return getattr(m, "__version__", "0.3.2")
except ImportError:
return "0.3.2"
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Are these fallbacks necessary? Is there an expected case where openlifu doesn't import or doesn't have a __version__?

Copy link
Copy Markdown
Contributor

@peterhollender peterhollender left a comment

Choose a reason for hiding this comment

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

I think we can reduce this to just the minimum for get_sdk_version without the additional script updates and fallbacks.

@ebrahimebrahim
Copy link
Copy Markdown
Collaborator

I am guessing this was meant to be overridden by #379

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