forked from GESS-research-group/pyshbundle
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #15 from abhimhamane/106-prereview
updated contribution, load_data with new approach and changed the flo…
- Loading branch information
Showing
5 changed files
with
93 additions
and
79 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,108 +1,102 @@ | ||
# Contributing | ||
|
||
Contributions are welcome, and they are greatly appreciated! Every | ||
little bit helps, and credit will always be given. | ||
Contributions are welcome, and they are greatly appreciated! Every | ||
little bit helps, and credit will always be given. | ||
|
||
You can contribute in many ways: | ||
You can contribute in many ways. | ||
|
||
## Types of Contributions | ||
|
||
### Report Bugs | ||
|
||
Report bugs at <https://github.com/mn5hk/pyshbundle/issues>. | ||
Report bugs at <https://github.com/mn5hk/pyshbundle/issues>. | ||
|
||
If you are reporting a bug, please include: | ||
If you are reporting a bug, please include: | ||
|
||
- Your operating system name and version. | ||
- Any details about your local setup that might be helpful in troubleshooting. | ||
- Detailed steps to reproduce the bug. | ||
- Your operating system name and version. | ||
- Any details about your local setup that might be helpful in troubleshooting. | ||
- Detailed steps to reproduce the bug. | ||
|
||
### Fix Bugs | ||
### Found Bugs!!! | ||
|
||
Look through the GitHub issues for bugs. Anything tagged with `bug` and | ||
`help wanted` is open to whoever wants to implement it. | ||
Look through the GitHub issues for bugs. Anything tagged with `bug` and | ||
`help wanted` is open to whoever wants to implement it. | ||
|
||
### Implement Features | ||
### Want New Functionality? | ||
|
||
Look through the GitHub issues for features. Anything tagged with | ||
`enhancement` and `help wanted` is open to whoever wants to implement it. | ||
Look through the GitHub issues for features. Anything tagged with | ||
`enhancement` and `help wanted` is open to whoever wants to implement it. | ||
|
||
### Write Documentation | ||
### Let's Improve Documentation | ||
|
||
pyshbundle could always use more documentation, | ||
whether as part of the official pyshbundle docs, | ||
in docstrings, or even on the web in blog posts, articles, and such. | ||
pyshbundle could always use more documentation, | ||
whether as part of the official pyshbundle docs, | ||
in docstrings, or even on the web in blog posts, articles, and such.<br> | ||
|
||
### Submit Feedback | ||
Another prefered way is to create explainatory tutorials. Using the `PySHBundle` functions to explain the `Spherical Harmonics` and `GRACE Data Processing`. | ||
|
||
The best way to send feedback is to file an issue at | ||
<https://github.com/mn5hk/pyshbundle/issues>. | ||
### Feedback | ||
|
||
If you are proposing a feature: | ||
The best way to send feedback is to file an issue at | ||
<https://github.com/mn5hk/pyshbundle/issues>. | ||
|
||
- Explain in detail how it would work. | ||
- Keep the scope as narrow as possible, to make it easier to implement. | ||
- Remember that this is a volunteer-driven project, and that contributions are welcome :) | ||
If you are proposing a feature: | ||
|
||
- Explain in detail how it would work. | ||
- Keep the scope as narrow as possible, to make it easier to implement. | ||
- Remember that this is a volunteer-driven project, and that contributions are welcome :) | ||
|
||
## Get Started! | ||
|
||
Ready to contribute? Here's how to set up pyshbundle for local development. | ||
Ready to contribute? Here's how to set up pyshbundle for local development. | ||
|
||
1. Fork the pyshbundle repo on GitHub. | ||
1. Fork the pyshbundle repo on GitHub. | ||
|
||
2. Clone your fork locally: | ||
2. Setup a seperate development environment. | ||
```shell | ||
# clone the repo and fetch the dev branch | ||
$ git clone [email protected]:mn5hk/pyshbundle.git | ||
|
||
```shell | ||
$ git clone [email protected]:your_name_here/pyshbundle.git | ||
``` | ||
# creating a new virtual environment | ||
$ python3 -m venv <name-env> | ||
|
||
3. Install your local copy into a virtualenv. Assuming you have | ||
virtualenvwrapper installed, this is how you set up your fork for | ||
local development: | ||
# install the dependencies from the requirements-dev file | ||
$ pip install -r ../pyshbundle/requirements-dev.txt | ||
|
||
```shell | ||
$ mkvirtualenv pyshbundle | ||
$ cd pyshbundle/ | ||
$ python setup.py develop | ||
``` | ||
# activate the virtual environment environment | ||
$ source </location-of-virt-env/name-env/bin/activate> | ||
``` | ||
|
||
4. Create a branch for local development: | ||
3. Build the latest repo in the development virtual environment. | ||
```shell | ||
# install package into virtual environment | ||
$ pip install ../pyshbundle/dist/<required-version>.tar.gz | ||
|
||
```shell | ||
$ git checkout -b name-of-your-bugfix-or-feature | ||
``` | ||
# you also have the option to build the module using, be careful of | ||
$ python setup.py sdist | ||
``` | ||
|
||
Now you can make your changes locally. | ||
|
||
5. When you're done making changes, check that your changes pass flake8 | ||
and the tests, including testing other Python versions with tox: | ||
4. Create a branch for local development: | ||
|
||
```shell | ||
$ flake8 pyshbundle tests | ||
$ python setup.py test or pytest | ||
$ tox | ||
``` | ||
```shell | ||
$ git checkout -b name-of-your-bugfix-or-feature | ||
``` | ||
|
||
To get flake8 and tox, just pip install them into your virtualenv. | ||
Now you can make your changes lo cally. | ||
|
||
6. Commit your changes and push your branch to GitHub: | ||
5. Commit your changes and push your branch to GitHub: | ||
|
||
```shell | ||
$ git add . | ||
$ git commit -m "Your detailed description of your changes." | ||
$ git push origin name-of-your-bugfix-or-feature | ||
``` | ||
```shell | ||
$ git add . | ||
$ git commit -m "Your detailed description of your changes." | ||
$ git push origin name-of-your-bugfix-or-feature | ||
``` | ||
|
||
7. Submit a pull request through the GitHub website. | ||
6. Submit a pull request through the GitHub website. | ||
|
||
## Pull Request Guidelines | ||
|
||
Before you submit a pull request, check that it meets these guidelines: | ||
Before you submit a pull request, check that it meets these guidelines: | ||
|
||
1. The pull request should include tests. | ||
2. If the pull request adds functionality, the docs should be updated. | ||
Put your new functionality into a function with a docstring, and add | ||
the feature to the list in README.rst. | ||
3. The pull request should work for Python 3.5, 3.6, 3.7 and 3.8, and | ||
for PyPy. Check <https://github.com/mn5hk/pyshbundle/pull_requests> and make sure that the tests pass for all | ||
supported Python versions. | ||
TBD... |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
|
||
# Reference Mannual - PySHBundle | ||
|
||
The module codes can be categorized into four categories: | ||
The module codes can be categorized into four categories: | ||
|
||
+ [load data](load_data.md) | ||
+ [Load Data Modules](load_data.md) | ||
+ [convert data formats](convert_data_formats.md) | ||
+ [core functionality](core_functionality.md) | ||
+ [auxillary codes](auxillary_codes.md) | ||
|
||
![Schematic diagram of code workflow](img/01_flowchart_without_background.png) | ||
![Schematic diagram of code workflow](img/01_flowchart_20240327.jpg) | ||
|
||
Navigate the Reference Manual based on the following schematic | ||
Navigate the Reference Manual based on the following schematic |