aadya940 / chainopy

ChainoPy: A Python Library for Discrete Time Markov Chain based stochastic analysis
https://chainopy.readthedocs.io/en/latest/
BSD 2-Clause "Simplified" License
13 stars 1 forks source link

[JOSS Review] Documentation #18

Closed braniii closed 3 months ago

braniii commented 4 months ago

Hi @aadya940,

this is part of my review and will be updated the next days.

Here is a list with open tasks:

I've finally finished the review. If you have any questions, feel free to write me.

Kind regards Daniel Nagel

braniii commented 4 months ago

Here is a list with minor issues I found while reviewing this repository. I thought it would be helpful sharing them:

aadya940 commented 4 months ago

Yes @braniii , you are correct regarding the test_markovchain.py, I'll fix it soon. As for the docs, there is an issue with readthedocs, they give a 404 error which I'm unable to solve however you'll be able to build the docs locally. Also, the docs are essentially generated using the docstring so you could just refer to those as of now.

Here are the steps to generate the docs locally:

Go to the project folder:

Step - 1:

pip install -r requirements_doc.txt

Step - 2:

sphinx-apidoc -o docs/source chainopy/

Step - 3:

cd docs
make html

Step - 4:

cd build/html
python -m http.server

The docs will be listed on the given port.

aadya940 commented 4 months ago

As for uploading the package on pip, I'll do it ASAP, sorry for the delay :))

braniii commented 4 months ago

Yes @braniii , you are correct regarding the test_markovchain.py, I'll fix it soon. As for the docs, there is an issue with readthedocs, they give a 404 error which I'm unable to solve however you'll be able to build the docs locally. Also, the docs are essentially generated using the docstring so you could just refer to those as of now.

Here are the steps to generate the docs locally:

Go to the project folder:

Step - 1:

pip install -r requirements_doc.txt

Step - 2:

sphinx-apidoc -o docs/source chainopy/

Step - 3:

cd docs
make html

Step - 4:

cd build/html
python -m http.server

The docs will be listed on the given port.

I've managed to build the docs, but it seems that there are some markdown parsing issues. I will wait until the documentation is back online.

Screenshot from 2024-07-10 16-06-12 Screenshot from 2024-07-10 16-06-55

aadya940 commented 4 months ago

Hi @braniii , So the docs are up and running now at : https://chainopy.readthedocs.io/en/latest/

However, I'll improve these more in the future, this is just a start so that our reviews don't get affected. :))

braniii commented 4 months ago

@aadya940 Sorry for this lengthy review process. But I've finally finished the review. If you have any further questions, feel free to write me.

aadya940 commented 4 months ago

The review has been really helpful to target sections which were lacking before. Thanks for the comprehensive review :))

braniii commented 3 months ago

The review has been really helpful to target sections which were lacking before. Thanks for the comprehensive review :))

You are welcome :)

aadya940 commented 3 months ago

@braniii For point three:

 Add examples for the advertised functionality in the docs.

I believe I've added plenty examples in https://github.com/aadya940/chainopy/blob/master/examples/demo.ipynb , So I've just referenced this file at the top of my sphinx documentation and hence am checking the box. Hope it is fine for you :))

braniii commented 3 months ago

@braniii For point three:

 Add examples for the advertised functionality in the docs.

I believe I've added plenty examples in https://github.com/aadya940/chainopy/blob/master/examples/demo.ipynb , So I've just referenced this file at the top of my sphinx documentation and hence am checking the box. Hope it is fine for you :))

The issue with githubs ipynb rendering engine is, that it is still not supported in the official app. Could you therefore simply include the notebook as a new page into your docs?

aadya940 commented 3 months ago

Yes good idea, thanks

braniii commented 3 months ago

And regarding the

It seems, that these attributes are now included once with description and once without. (see e.g. eigenvalues or epsilon)

braniii commented 3 months ago

@aadya940 please tick off only issues you've fixed. Both, the examples are still missing and parts of the README are not rendered.

aadya940 commented 3 months ago

@braniii Hello,

I hope everything seems good now :)) , Sorry for the delay.

braniii commented 3 months ago

Looks good.