Skip to content

1025 Add multi-threads support in ImageReaders#1030

Merged
Nic-Ma merged 9 commits intoProject-MONAI:masterfrom
Nic-Ma:1025-add-multi-threads-imagereader
Sep 15, 2020
Merged

1025 Add multi-threads support in ImageReaders#1030
Nic-Ma merged 9 commits intoProject-MONAI:masterfrom
Nic-Ma:1025-add-multi-threads-imagereader

Conversation

@Nic-Ma
Copy link
Copy Markdown
Contributor

@Nic-Ma Nic-Ma commented Sep 14, 2020

Fixes #1025 .

Description

This PR updated the ImageReaders to make it more clear and compatible with multi-threads.
Also added kwargs to the read function.
Removed dependency between read and get_data functions.

Status

Ready

Types of changes

  • Non-breaking change (fix or new feature that would not break existing functionality).
  • Breaking change (fix or new feature that would cause existing functionality to change).
  • New tests added to cover the changes.
  • Integration tests passed locally by running ./runtests.sh --codeformat --coverage.
  • In-line docstrings updated.
  • Documentation updated, tested make html command in the docs/ folder.

@Nic-Ma
Copy link
Copy Markdown
Contributor Author

Nic-Ma commented Sep 14, 2020

/black

Copy link
Copy Markdown
Contributor

@wyli wyli left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks please see some minor comments inline. The APIs are experimental and look good for now, but probably they'll change when we deal with pathology images.

@Nic-Ma
Copy link
Copy Markdown
Contributor Author

Nic-Ma commented Sep 15, 2020

/black

@Nic-Ma Nic-Ma merged commit e82f5dd into Project-MONAI:master Sep 15, 2020
rijobro pushed a commit to rijobro/MONAI that referenced this pull request Sep 15, 2020
* [DLMED] add multi-threads support for ImageReaders

Signed-off-by: Nic Ma <[email protected]>

* [DLMED] update according to comments

Signed-off-by: Nic Ma <[email protected]>
Signed-off-by: richard <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ImageReader can't support multi-threads

2 participants