INT-NIT / BEP032tools

Software tools supporting the BIDS Extension Proposal (BEP) dedicated to adding support for electrophysiological data recorded in animal models (BEP032)
MIT License
3 stars 8 forks source link

Formating docstring #81

Closed Slowblitz closed 3 years ago

Slowblitz commented 3 years ago

Here is a draft to make sure all docstrings in our project uses the same convention, we have decided to use the Numpy Style Python Docstrings. Example here: https://sphinxcontrib-napoleon.readthedocs.io/en/latest/example_numpy.html#example-numpy Here's the result before merging it on the main repos : https://ando-test.readthedocs.io/en/enh-doc_standardisation/ Feel free to add documentation where it's needed. Happy coding.

pep8speaks commented 3 years ago

Hello @Slowblitz! Thanks for updating this PR.

Line 133:15: W291 trailing whitespace

Line 30:101: E501 line too long (106 > 100 characters) Line 109:101: E501 line too long (113 > 100 characters) Line 261:1: W293 blank line contains whitespace Line 280:1: W293 blank line contains whitespace

Comment last updated at 2021-04-18 09:21:27 UTC
coveralls commented 3 years ago

Pull Request Test Coverage Report for Build 747682315

Warning: This coverage report may be inaccurate.

This pull request's base commit is no longer the HEAD commit of its target branch. This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.

Details


Changes Missing Coverage Covered Lines Changed/Added Lines %
ando/tools/generator/tests/test_AnDOGenerator.py 0 1 0.0%
ando/tools/generator/AnDOGenerator.py 0 38 0.0%
<!-- Total: 6 45 13.33% -->
Files with Coverage Reduction New Missed Lines %
ando/AnDOChecker.py 10 71.79%
ando/tools/generator/AnDOGenerator.py 42 0.0%
<!-- Total: 52 -->
Totals Coverage Status
Change from base Build 722690554: 0.0%
Covered Lines: 203
Relevant Lines: 494

💛 - Coveralls
JuliaSprenger commented 3 years ago

Thanks for the update and sorry for not changing the doc style already when porting the generator code... Do you have a readthedocs test project somewhere so we can already see the result of these changes online?

Slowblitz commented 3 years ago

@JuliaSprenger Yes I've updated in the main description at the top but here it is : https://ando-test.readthedocs.io/en/enh-doc_standardisation/

JuliaSprenger commented 3 years ago

Can you please also substitute the bit.ly link by the 'official' BIDS/BEP032 link?

JuliaSprenger commented 3 years ago

Hi @Slowblitz! Here a first list of things I noticed when scanning the documentation. We should also thing about harmonizing variable names at some point, e.g. path, dirpath, dir...

Slowblitz commented 3 years ago

"The google doc link in the ando.AnDOChecker.is_valid docstring needs to be replaced by to the BIDS/BEP032 link " the link is already the BEP's one for me or is there an other link ?

SylvainTakerkart commented 3 years ago

here is the link to be used (cf our discussion on mattermost): https://bids.neuroimaging.io/bep032

Slowblitz commented 3 years ago

Thanks @SylvainTakerkart !

JuliaSprenger commented 3 years ago

Can you add also the missing docstring to the register_metadata method? Something like ` """ Register metadata with the AnDO data structure. Parameters

    *files : path to files to be added as metadata files.
        File content needs to be according with AnDO guidelines as files will only be moved to the their correct location based on the file name
    """
JuliaSprenger commented 3 years ago

And I guess this PR is not a draft any more, but ready for review?

JuliaSprenger commented 3 years ago

I started going through the documentation on readthedocs again and found some more issues:

JuliaSprenger commented 3 years ago
Slowblitz commented 3 years ago

Done =)