thegraphnetwork / epigraphhub_py

Epigraphhub Python package
GNU General Public License v3.0
2 stars 9 forks source link

Refactor the package #168

Closed eduardocorrearaujo closed 2 years ago

eduardocorrearaujo commented 2 years ago

By now, the epigraphhub is organized as follows: ** - represents a file inside a subfolder Epigraphhub/

And the examples folder is organized as follows:

Examples/

I propose the change:

Epigraphhub/

And the examples folder it will be organized as follows:

The idea is the notebooks has the same name of the .py files and following the same structure shown above:

Examples/

xmnlab commented 2 years ago

I think maybe it would be better if we rename the Examples folder to tutorial, and move it to inside the docs folder. Also, I recommend to standardize the name of the folders to use always lower case.

eduardocorrearaujo commented 2 years ago

I agree, thank you for your contribution, @xmnlab.

fccoelho commented 2 years ago

Some initial suggestions:

eduardocorrearaujo commented 2 years ago

ok, thank you

eduardocorrearaujo commented 2 years ago

Some initial suggestions:

  • Move all plot related code in to a subpackage named plottingor something similar.
  • in the data packages create subpackages by sources and inside we can have modules by dataset from that source.
  • models should be a subpackage of analysis. Inside we can have modules or subpackages for types of models.

I was thinking about keeping the forecast models in a separate folder. Otherwise, I think that the path to the models will be too long: "from epigraphhub.analysis.models.forecast.ngboost_models import xxxxxxx" It's just an opinion looking at the scipy docs.

Other point that I saw in scipy, is keep the tests in the folder with the code instead of the main folder. What do you think about it?

eduardocorrearaujo commented 2 years ago

It was solved by PR #167