Skip to content

Commit

Permalink
fix path backslashes (#17)
Browse files Browse the repository at this point in the history
* Added test autopipeline and modalities, solved some autopipeline bugs, read_dicom_series and pet now supports series_id

* PT/RTDOSE metadata to csv

* fixed some bugs in autopipeline.py

* now the pipeline saves on exit

* deleted data

* now checks for existing subject id

* uncommented one line pytest

* uncommented one line pytest

* Added dataset class which can load from nrrds or directly from the dataset and convert to pytorch dataset

* bug fixes_1.0

* test and autopipe fixed

* bug fixes 2

* bug fixes 2

* added visualizations and some more bug fixes

* fixed bugs regarding multiple connections, saving of metadata and loading of metadata

* small bug fix

* added demo.py

* Changed dataset class returns

* fix conflicts

* fixed test autopipe

* fix path backslash issues

Co-authored-by: Vishwesh <vishweshramanathan@gmail.com>
  • Loading branch information
skim2257 and Vishwesh4 authored Dec 13, 2021
1 parent 539777c commit 5c6f7b0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion imgtools/modules/datagraph.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ def visualize_graph(self):
"""
Generates visualization using Pyviz, a wrapper around visJS. The visualization can be found at datanet.html
"""
from pyvis.network import Network
from pyvis.network import Network # type: ignore (PyLance)
print("Generating visualizations...")
data_net = Network(height='100%', width='100%', bgcolor='#222222', font_color='white')

Expand Down
2 changes: 1 addition & 1 deletion tests/test_autopipe.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def dataset_path():
output_path = pathlib.Path(os.path.join(curr_path, 'tests'))
return quebec_path.as_posix(), output_path.as_posix()

# @pytest.mark.parametrize("modalities",["PT","CT,RTDOSE","CT,RTSTRUCT,RTDOSE","CT,RTSTRUCT,RTDOSE,PT"])
# @pytest.mark.parametrize("modalities",["PT", "CT,RTSTRUCT", "CT,RTDOSE", "CT,PT,RTDOSE", "CT,RTSTRUCT,RTDOSE", "CT,RTSTRUCT,RTDOSE,PT"])
@pytest.mark.parametrize("modalities", ["CT,PT,RTDOSE"])
def test_pipeline(dataset_path, modalities):
input_path, output_path = dataset_path
Expand Down

0 comments on commit 5c6f7b0

Please sign in to comment.