pylantir 0.0.3__tar.gz → 0.0.4__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {pylantir-0.0.3 → pylantir-0.0.4}/PKG-INFO +1 -1
- {pylantir-0.0.3 → pylantir-0.0.4}/pyproject.toml +1 -1
- {pylantir-0.0.3 → pylantir-0.0.4}/src/pylantir/cli/run.py +9 -5
- {pylantir-0.0.3 → pylantir-0.0.4}/README.md +0 -0
- {pylantir-0.0.3 → pylantir-0.0.4}/src/pylantir/.env +0 -0
- {pylantir-0.0.3 → pylantir-0.0.4}/src/pylantir/__init__.py +0 -0
- {pylantir-0.0.3 → pylantir-0.0.4}/src/pylantir/cli/__init__.py +0 -0
- {pylantir-0.0.3 → pylantir-0.0.4}/src/pylantir/config/mwl_config.json +0 -0
- {pylantir-0.0.3 → pylantir-0.0.4}/src/pylantir/db_setup.py +0 -0
- {pylantir-0.0.3 → pylantir-0.0.4}/src/pylantir/models.py +0 -0
- {pylantir-0.0.3 → pylantir-0.0.4}/src/pylantir/mwl_server.py +0 -0
- {pylantir-0.0.3 → pylantir-0.0.4}/src/pylantir/populate_db.py +0 -0
- {pylantir-0.0.3 → pylantir-0.0.4}/src/pylantir/redcap_to_db.py +0 -0
|
@@ -12,9 +12,6 @@ import importlib.util
|
|
|
12
12
|
from dotenv import set_key
|
|
13
13
|
from concurrent.futures import ThreadPoolExecutor # for background thread
|
|
14
14
|
|
|
15
|
-
from ..mwl_server import run_mwl_server
|
|
16
|
-
from ..redcap_to_db import sync_redcap_to_db_repeatedly
|
|
17
|
-
|
|
18
15
|
lgr = logging.getLogger(__name__)
|
|
19
16
|
|
|
20
17
|
def setup_logging(debug=False):
|
|
@@ -195,7 +192,10 @@ def main() -> None:
|
|
|
195
192
|
print("pynetdicom logger level:", logging.getLogger("pynetdicom").getEffectiveLevel())
|
|
196
193
|
|
|
197
194
|
|
|
195
|
+
|
|
198
196
|
if (args.command == "start"):
|
|
197
|
+
from ..mwl_server import run_mwl_server
|
|
198
|
+
from ..redcap_to_db import sync_redcap_to_db_repeatedly
|
|
199
199
|
# Load configuration (either user-specified or default)
|
|
200
200
|
config = load_config(args.pylantir_config)
|
|
201
201
|
|
|
@@ -250,14 +250,17 @@ def main() -> None:
|
|
|
250
250
|
)
|
|
251
251
|
|
|
252
252
|
if (args.command == "query-db"):
|
|
253
|
+
from ..mwl_server import run_mwl_server
|
|
254
|
+
from ..redcap_to_db import sync_redcap_to_db_repeatedly
|
|
253
255
|
lgr.info("Querying the MWL database")
|
|
254
256
|
|
|
255
257
|
run_test_script(
|
|
256
258
|
"query_db.py")
|
|
257
259
|
|
|
258
260
|
if (args.command == "test-client"):
|
|
261
|
+
from ..mwl_server import run_mwl_server
|
|
262
|
+
from ..redcap_to_db import sync_redcap_to_db_repeatedly
|
|
259
263
|
lgr.info("Running client test for MWL")
|
|
260
|
-
|
|
261
264
|
# Run client.py to ensure that the worklist server is running and accepting connections
|
|
262
265
|
run_test_script(
|
|
263
266
|
"client.py",
|
|
@@ -267,9 +270,10 @@ def main() -> None:
|
|
|
267
270
|
)
|
|
268
271
|
|
|
269
272
|
if (args.command == "test-mpps"):
|
|
273
|
+
from ..mwl_server import run_mwl_server
|
|
274
|
+
from ..redcap_to_db import sync_redcap_to_db_repeatedly
|
|
270
275
|
lgr.info("Running MPPS test")
|
|
271
276
|
# Run MPPS tester with relevant arguments
|
|
272
|
-
|
|
273
277
|
run_test_script(
|
|
274
278
|
"mpps_tester.py",
|
|
275
279
|
host=args.ip,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|