-
Notifications
You must be signed in to change notification settings - Fork 57
Closed
Labels
documentationImprovements or additions to documentationImprovements or additions to documentation
Milestone
Description
Report incorrect documentation
Location of incorrect documentation
An example selection rules: |
Describe the problems or issues found in the documentation
The rules specified are not very clear. What is CT Series 1 and CT Series 2. >
Steps taken to verify documentation is incorrect
I wrote a series selector for my application and I get the following error
data_loader = DICOMDataLoaderOperator()
data_study_list = data_loader.load_data_to_studies(dcm_dir)
study_list = '{"selections" : [ \
{"name" : "Mammo Series 1", \
"conditions" :{ \
"SeriesDescription": "(?i)^CC",\
"Modality": "MG"}\
}]}'
study_selector_json = json.loads(study_list)
study_selector_op = DICOMSeriesSelectorOperator(study_selector_json)
selector = DICOMSeriesSelectorOperator()
print(type(study_selector_json))
selected_study = selector.filter(study_selector_json, data_study_list)
I get the following error
{'selections': [{'name': 'Mammo Series 1', 'conditions': {'SeriesDescription': '(?i)^CC', 'Modality': 'MG'}}]}
Traceback (most recent call last):
File "test.py", line 63, in <module>
main()
File "test.py", line 49, in main
study_selector_op = DICOMSeriesSelectorOperator(study_selector_json)
File "/workspace/app/monai-deploy-app-sdk/monai/deploy/operators/dicom_series_selector_operator.py", line 82, in __init__
self._rules_json_str = rules if rules and rules.strip() else None
AttributeError: 'dict' object has no attribute 'strip'
Metadata
Metadata
Labels
documentationImprovements or additions to documentationImprovements or additions to documentation