OpenwaterHealth / OpenwaterHealth/openlifu-python
Save Focal Gain LUT into a data file (json, csv, etc.) to make the source code file shorter.
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 27
- Forks
- 21
- Avg merge
- 1d 20m
- Merged PRs (30d)
- 6
Description
Totally optional but consider saving the lookup table into a data file (json, csv, etc.) to make the source code file shorter.
If you chose to do that:
- you would read the file here using
importlib.resourcesto locate it - you would ensure it's bundled int he install by adding it to the
[tool.setuptools.package-data]section. in case hatchling doesn't bnundle it automatically
Originally posted by @ebrahimebrahim in https://github.com/OpenwaterHealth/openlifu-python/pull/443#discussion_r3066545337
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Locate the source file containing the Focal Gain lookup table and the packaging configuration with the [tool.setuptools.package-data] section. Read the table via importlib.resources and verify that an installed package can access the bundled data file while preserving the existing lookup behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- build-system
- Issue type
- Refactor
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 68/100