Skip to content

Commit a439726

Browse files
Reorganize Project and Imports #8
- Trims unnecessary parts of the project, including - legacy scripts - the io module (now covered in `openlifu-sdk`) - unused parts of Database (gridweights) - Reorganizes `virtual_fit` module into `seg` - Eliminates "eager" imports in `openlifu.__init__`, to prevent the many-seconds-long importing when accessing any submodule. - Moves importing of heavier-weight packages (which are being made optional by this branch) into the methods that call them, so that the objects can be partially-used without having those dependencies imported. Code that touches `openlifu.virtual_fit` needs to be refactored to use `openlifu.seg.virtualfit`, and code that used things like `openlifu.Transducer` will need to be changed to use `openlifu.xdc.Transducer` reorganize virtual fit and geo remove gridweights Unused enhancement Update transducer.py remove legacy scripts,
1 parent 034485b commit a439726

101 files changed

Lines changed: 486 additions & 16841 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

docs/hv_controller_api.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ high-voltage console device over UART using the `LIFUUart` interface.
1010
## Initialization
1111

1212
```python
13-
from openlifu.io.LIFUHVController import HVController
14-
from openlifu.io.LIFUUart import LIFUUart
13+
from openlifu_sdk.io.LIFUHVController import HVController
14+
from openlifu_sdk.io.LIFUUart import LIFUUart
1515

1616
interface = LIFUInterface(TX_test_mode=False)
1717
tx_connected, hv_connected = interface.is_device_connected()

docs/tx_device_api.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ backend.
1313
## Initialization
1414

1515
```python
16-
from openlifu.io.LIFUTXDevice import TxDevice
17-
from openlifu.io.LIFUInterface import LIFUInterface
16+
from openlifu_sdk.io.LIFUTXDevice import TxDevice
17+
from openlifu_sdk.io.LIFUInterface import LIFUInterface
1818

1919
interface = LIFUInterface(TX_test_mode=False)
2020
tx_connected, hv_connected = interface.is_device_connected()

examples/legacy/LIFUTestWidget.py

Lines changed: 0 additions & 249 deletions
This file was deleted.

0 commit comments

Comments
 (0)