From a71a7455485b7751d1b9c2fdcc22b78b467a6b78 Mon Sep 17 00:00:00 2001 From: Marie-Eve Picard Date: Sat, 26 Oct 2024 13:41:11 -0400 Subject: [PATCH] Integrate physutils changes --- phys2denoise/tests/test_tasks_integration.py | 8 ++++---- setup.cfg | 3 +-- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/phys2denoise/tests/test_tasks_integration.py b/phys2denoise/tests/test_tasks_integration.py index fb3c75a..20188e7 100644 --- a/phys2denoise/tests/test_tasks_integration.py +++ b/phys2denoise/tests/test_tasks_integration.py @@ -6,7 +6,7 @@ import numpy as np from loguru import logger from physutils import physio -from physutils.tasks import transform_to_physio +from physutils.tasks import generate_physio from pydra import Submitter, Workflow import phys2denoise.tasks as tasks @@ -31,8 +31,8 @@ def test_integration(fake_phys): phys=physio_file, ) wf.add( - transform_to_physio( - name="transform_to_physio", + generate_physio( + name="generate_physio", input_file=wf.lzin.phys, fs=wf.lzin.fs, mode="physio", @@ -41,7 +41,7 @@ def test_integration(fake_phys): wf.add( tasks.compute_metrics( name="compute_metrics", - phys=wf.transform_to_physio.lzout.out, + phys=wf.generate_physio.lzout.out, metrics=[ "respiratory_variance", "respiratory_variance_time", diff --git a/setup.cfg b/setup.cfg index 219dd4c..8cbdca4 100644 --- a/setup.cfg +++ b/setup.cfg @@ -28,8 +28,7 @@ install_requires = duecredit loguru pydra - # re-constrain version before merging to master - physutils + physutils ==0.3.0 tests_require = pytest >=5.3 test_suite = pytest