Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ClinicaDL cleaning #517

Merged
merged 53 commits into from
Apr 5, 2024
Merged

Conversation

camillebrianceau
Copy link
Collaborator

No description provided.

@pep8speaks
Copy link

pep8speaks commented Jan 19, 2024

Hello @camillebrianceau! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found:

There are currently no PEP 8 issues detected in this Pull Request. Cheers! 🍻

Comment last updated at 2024-04-05 10:44:57 UTC

Copy link
Contributor

@ncassereau ncassereau left a comment

Choose a reason for hiding this comment

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

A few lines of commented-out code still remain. Other than that, looks good to me.

clinicadl/train/train_utils.py Outdated Show resolved Hide resolved
clinicadl/utils/maps_manager/maps_manager.py Outdated Show resolved Hide resolved
clinicadl/utils/maps_manager/maps_manager_utils.py Outdated Show resolved Hide resolved
@camillebrianceau camillebrianceau self-assigned this Feb 14, 2024
@camillebrianceau camillebrianceau added this to the v1.6.1 milestone Feb 15, 2024
camillebrianceau and others added 20 commits March 19, 2024 13:45
Bumps [pillow](https://github.com/python-pillow/Pillow) from 10.1.0 to 10.2.0.
- [Release notes](https://github.com/python-pillow/Pillow/releases)
- [Changelog](https://github.com/python-pillow/Pillow/blob/main/CHANGES.rst)
- [Commits](python-pillow/Pillow@10.1.0...10.2.0)

---
updated-dependencies:
- dependency-name: pillow
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps [jinja2](https://github.com/pallets/jinja) from 3.1.2 to 3.1.3.
- [Release notes](https://github.com/pallets/jinja/releases)
- [Changelog](https://github.com/pallets/jinja/blob/main/CHANGES.rst)
- [Commits](pallets/jinja@3.1.2...3.1.3)

---
updated-dependencies:
- dependency-name: jinja2
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
…ll the splits (aramis-lab#524)

* issue overwrite

* add documentation for skip leak check (last PR)
* first try to add an adaptive learning rate

* add documentation
* remove clinica dependency
* changes after review
* add prepare-data-from-bids command
* add logger and mlflow and wandb callbacks
* adapt to clinicadl hugging face organization

* finish skip leak check to use clinicadl with downloaded masp
* Add metrics (R2 score, MCC, MK, lr-, lr+) and non parametric (bootstrap) confidence intervals
…aining ".." strings (aramis-lab#535)

* Use parent or parents attributes of Pathlib Path object instead of chaining ".." strings

* Use parent or parents attributes of Pathlib Path object instead of chaining ".." strings

* remove redundant cast
Copy link
Collaborator

@thibaultdvx thibaultdvx left a comment

Choose a reason for hiding this comment

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

Some minor suggestions

clinicadl/generate/generate.py Outdated Show resolved Hide resolved
clinicadl/generate/generate.py Outdated Show resolved Hide resolved
clinicadl/generate/generate.py Outdated Show resolved Hide resolved
Gamma range of simulated contrast.
noise_std: List
Stadndard deviation of simulated noise.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Contrast, gamma and motion parameters are missing.

@@ -318,7 +318,7 @@ def generate_shepplogan_phantom(
return img


def mask_processing(mask, percentage, sigma):
def mask_processing(mask, percentage: float, sigma: float):
Copy link
Collaborator

Choose a reason for hiding this comment

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

mask's type?

clinicadl/utils/maps_manager/maps_manager.py Outdated Show resolved Hide resolved
clinicadl/utils/maps_manager/maps_manager.py Outdated Show resolved Hide resolved
clinicadl/utils/maps_manager/maps_manager.py Outdated Show resolved Hide resolved
clinicadl/utils/maps_manager/maps_manager.py Outdated Show resolved Hide resolved
clinicadl/utils/maps_manager/maps_manager.py Outdated Show resolved Hide resolved
Copy link
Collaborator

@thibaultdvx thibaultdvx left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Collaborator

@thibaultdvx thibaultdvx left a comment

Choose a reason for hiding this comment

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

LGTM

@camillebrianceau camillebrianceau merged commit bdddecf into aramis-lab:dev Apr 5, 2024
22 checks passed
@camillebrianceau camillebrianceau deleted the cb_clean_code branch April 5, 2024 11:04
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.

4 participants