Skip to content

3710 Add support to set delimiter for CSV files and change default to comma#3711

Merged
Nic-Ma merged 8 commits into
Project-MONAI:devfrom
Nic-Ma:3710-enhance-csv-split
Jan 25, 2022
Merged

3710 Add support to set delimiter for CSV files and change default to comma#3711
Nic-Ma merged 8 commits into
Project-MONAI:devfrom
Nic-Ma:3710-enhance-csv-split

Conversation

@Nic-Ma

@Nic-Ma Nic-Ma commented Jan 25, 2022

Copy link
Copy Markdown
Contributor

Fixes #3710 .

Description

According to @holgerroth 's feedback, this PR added support to set delimiter for CSVSaver, ClassificationSaver, SaveClassificationd.
And changed the default value to comma in MetricsWriter handler.

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 -f -u --net --coverage.
  • Quick tests passed locally by running ./runtests.sh --quick --unittests --disttests.
  • In-line docstrings updated.
  • Documentation updated, tested make html command in the docs/ folder.

@Nic-Ma

Nic-Ma commented Jan 25, 2022

Copy link
Copy Markdown
Contributor Author

/black

@Nic-Ma

Nic-Ma commented Jan 25, 2022

Copy link
Copy Markdown
Contributor Author

/build

@Nic-Ma

Nic-Ma commented Jan 25, 2022

Copy link
Copy Markdown
Contributor Author

Added unit tests to cover the delimiter arg in all the components.

Thanks.

Signed-off-by: Nic Ma <nma@nvidia.com>

@holgerroth holgerroth left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

LGTM

@Nic-Ma

Nic-Ma commented Jan 25, 2022

Copy link
Copy Markdown
Contributor Author

/build

Comment thread monai/data/csv_saver.py Outdated
Signed-off-by: Nic Ma <nma@nvidia.com>
@Nic-Ma Nic-Ma force-pushed the 3710-enhance-csv-split branch from d2110f0 to ca31255 Compare January 25, 2022 16:29
@Nic-Ma

Nic-Ma commented Jan 25, 2022

Copy link
Copy Markdown
Contributor Author

/black

@Nic-Ma

Nic-Ma commented Jan 25, 2022

Copy link
Copy Markdown
Contributor Author

/build

@Nic-Ma Nic-Ma merged commit d36b835 into Project-MONAI:dev Jan 25, 2022
wyli pushed a commit that referenced this pull request Feb 9, 2022
… comma (#3711)

* [DLMED] add support to config delimiter

Signed-off-by: Nic Ma <nma@nvidia.com>

* [DLMED] fix typo

Signed-off-by: Nic Ma <nma@nvidia.com>

* [DLMED] update according to comments

Signed-off-by: Nic Ma <nma@nvidia.com>
wyli pushed a commit that referenced this pull request Feb 9, 2022
… comma (#3711)

* [DLMED] add support to config delimiter

Signed-off-by: Nic Ma <nma@nvidia.com>

* [DLMED] fix typo

Signed-off-by: Nic Ma <nma@nvidia.com>

* [DLMED] update according to comments

Signed-off-by: Nic Ma <nma@nvidia.com>
wyli pushed a commit that referenced this pull request Feb 9, 2022
… comma (#3711)

* [DLMED] add support to config delimiter

Signed-off-by: Nic Ma <nma@nvidia.com>

* [DLMED] fix typo

Signed-off-by: Nic Ma <nma@nvidia.com>

* [DLMED] update according to comments

Signed-off-by: Nic Ma <nma@nvidia.com>
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.

Optional split mark for CSV files

3 participants