Skip to content

Fix linter errors#170

Merged
jonasteuwen merged 39 commits intomainfrom
fix-linter-errors
Jan 19, 2022
Merged

Fix linter errors#170
jonasteuwen merged 39 commits intomainfrom
fix-linter-errors

Conversation

@georgeyiasemis
Copy link
Copy Markdown
Contributor

@georgeyiasemis georgeyiasemis commented Jan 17, 2022

Fixed some linter errors:

  • Docstring fixes with docformatter
  • Model Engine methods such as (compute_resolution, compute_model_per_coil,..) now independent functions in nn/utils to avoid dublication
  • Added .prospector.yaml file to filter codacy checks
  • Docs enhancement

@github-actions github-actions bot added documentation Improvements or additions to documentation python labels Jan 17, 2022
@codecov
Copy link
Copy Markdown

codecov bot commented Jan 17, 2022

Codecov Report

Merging #170 (ce32941) into main (d874e8d) will increase coverage by 0.23%.
The diff coverage is 91.50%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #170      +/-   ##
==========================================
+ Coverage   74.39%   74.63%   +0.23%     
==========================================
  Files          70       71       +1     
  Lines        6300     6111     -189     
==========================================
- Hits         4687     4561     -126     
+ Misses       1613     1550      -63     
Impacted Files Coverage Δ
direct/cli/upload.py 0.00% <ø> (ø)
direct/data/bbox.py 54.28% <ø> (ø)
direct/data/datasets.py 75.77% <ø> (ø)
direct/data/fake.py 97.84% <ø> (ø)
direct/data/h5_data.py 64.96% <ø> (ø)
direct/data/lr_scheduler.py 70.83% <ø> (ø)
direct/data/mri_transforms.py 99.27% <ø> (ø)
direct/data/samplers.py 92.00% <ø> (ø)
direct/data/transforms.py 93.46% <ø> (ø)
direct/environment.py 18.81% <ø> (ø)
... and 48 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update d874e8d...ce32941. Read the comment docs.

Copy link
Copy Markdown
Contributor

@jonasteuwen jonasteuwen left a comment

Choose a reason for hiding this comment

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

LGTM

Comment on lines +8 to +11
disable:
- E501
- W605

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

What do these do?

.prospector.yml Outdated
Comment on lines +14 to +15
- W
- import-outside-toplevel
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Not sure we should do this.

@jonasteuwen jonasteuwen merged commit ce060aa into main Jan 19, 2022
@jonasteuwen jonasteuwen deleted the fix-linter-errors branch January 19, 2022 13:07
jonasteuwen added a commit that referenced this pull request Feb 10, 2022
* Improve code quality (#158, #166)
* Reduce pylint warnings
* Reduce pyflakes warnings
* Add codacy code quality badge
* Improving code quality by renaming variables
* Bump version: 1.0.0 → 1.0.1-dev0
* Adds citation button (#169)

Co-authored-by: wdika <dimitriskarkalousos@gmail.com>

* Update model_zoo.rst

* Fix linter errors (#170)

* Fix some linter warnings
* Add .prospector.yml
* Update docs/index.rst

* Delete README.md

* Update README.rst

* Merged MRI models engine to MRIModelEngine

* Minor fix

* Func to get size of objiect

* - Fix typo
- Refactor to have functions not class members

* - Remove process_output from base class

* First attempt to rewriting validation process (will not pass CI)

* Rewrite validation process (will not pass CI)

* Improve validation

* Improve validation

* Log metric output

* Improve metric log output

* Replace ISMRMD with xml parser

* Make sure the metric is cloned

* Refactoring

* Refactoring

* Refactoring

* Fix roll test

* Remove `is_validation_process`

* Move ismrmrd dependency to dev dependencies

* Install extras for tox

* Make compatible tests for new updates

* Minor fix

* Fix pytest warning

* Fix pylint errors

* Update black.yml

* Update black.yml

* Update black.yml

* Black 22.1.0 fixes

* Black 22.1.0 fixes

* Updated docs, fixed `write_output_to_h5` to work with new predict function

* Update `utils`

* Add test

* Update rim_engine.py

* Minor fix

* Disable tensorboard warnings

* Remove whitespace

* Update train.py

* Update varnet_engine.py

* Test engine.train

* Test engine.train

* Refine test

* Fix typo and unused import

* Add crop option for inference

* Codacy pseudonumber complains

* Update setup.py

`h5py 3.6.0` caused memory leak

* Minor documentation fix

* Update writers.py

* Update mri_models.py

* Edit `set_all_seeds`

* Update subsample.py

* Minor fix

* Fix/supress codacy warnings

* Fix/supress codacy warnings

* Fix/supress codacy warnings

* Lazy formatting

* Lazy formatting

Co-authored-by: Jonas Teuwen <2347927+jonasteuwen@users.noreply.github.com>
Co-authored-by: Dimitris Karkalousos <d.karkalousos@amsterdamumc.nl>
Co-authored-by: wdika <dimitriskarkalousos@gmail.com>
Co-authored-by: Jonas Teuwen <j.teuwen@nki.nl>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation python

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants