-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* core refactoring * restructuring * Update whats_new.rst (#124) * Update ci-extensions.yaml * Update whats_new.rst * update domain table resource path * using domain_id identifier * update docs * update ci environment * clean up
- Loading branch information
1 parent
8ea80c8
commit ef512e8
Showing
25 changed files
with
285 additions
and
279 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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 +1,13 @@ | ||
.. include:: ../AUTHORS.rst | ||
======= | ||
Credits | ||
======= | ||
|
||
Development Lead | ||
---------------- | ||
|
||
* `Lars Buntemeyer <https://github.com/larsbuntemeyer>`_ | ||
|
||
Contributors | ||
------------ | ||
|
||
* `Ludwig Lierhammer <https://github.com/ludwiglierhammer>`_ |
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 +1,125 @@ | ||
.. include:: ../CONTRIBUTING.rst | ||
.. highlight:: shell | ||
|
||
============ | ||
Contributing | ||
============ | ||
|
||
Contributions are welcome, and they are greatly appreciated! Every little bit | ||
helps, and credit will always be given. | ||
|
||
You can contribute in many ways: | ||
|
||
Types of Contributions | ||
---------------------- | ||
|
||
Report Bugs | ||
~~~~~~~~~~~ | ||
|
||
Report bugs at https://github.com/remo-rcm/pyremo/issues. | ||
|
||
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. | ||
|
||
Fix Bugs | ||
~~~~~~~~ | ||
|
||
Look through the GitHub issues for bugs. Anything tagged with "bug" and "help | ||
wanted" is open to whoever wants to implement it. | ||
|
||
Implement Features | ||
~~~~~~~~~~~~~~~~~~ | ||
|
||
Look through the GitHub issues for features. Anything tagged with "enhancement" | ||
and "help wanted" is open to whoever wants to implement it. | ||
|
||
Write Documentation | ||
~~~~~~~~~~~~~~~~~~~ | ||
|
||
The pyremo package could always use more documentation, whether as part of the | ||
official Cordex Python Package docs, in docstrings, or even on the web in blog posts, | ||
articles, and such. | ||
|
||
Submit Feedback | ||
~~~~~~~~~~~~~~~ | ||
|
||
The best way to send feedback is to file an issue at https://github.com/remo-rcm/pyremo/issues. | ||
|
||
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 `pyremo` for local development. | ||
|
||
Forking | ||
~~~~~~~ | ||
|
||
You will need create your own fork of the project. This is really easy using the github | ||
interface, just go to the `pyremo project page <https://github.com/remo-rcm/pyremo>`_ and hit the ``Fork`` button. | ||
From your fork, you then clone the repository to your machine:: | ||
|
||
git clone https://github.com/your-user-name/pyremo.git | ||
cd pyremo | ||
git remote add upstream https://github.com/remo-rcm/pyremo.git | ||
|
||
|
||
Creating a Python Environment | ||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
|
||
For the development environment, we recommend to use the conda package manager. | ||
|
||
- Install either `Anaconda <https://www.anaconda.com/download/>`_ or `miniconda | ||
<https://conda.io/miniconda.html>`_ | ||
- Make sure your conda is up to date (``conda update conda``) | ||
- ``cd`` to the *pyremo* source directory | ||
|
||
We don't recommend to use pip installation for development since some | ||
depdencenies (like ``cartopy`` or ``xesmf``) require pre-compiled libraries | ||
in the backend. So the safest way to go is: | ||
|
||
1. Install the build dependencies | ||
2. Build and install pyremo from source | ||
|
||
.. code-block:: sh | ||
# Create and activate the build environment | ||
conda create -c conda-forge -n pyremo-tests python=3.9 | ||
conda env update -f ci/requirements/environment.yml | ||
conda activate pyremo-tests | ||
# Build and install pyremo in editable mode | ||
pip install -e . | ||
At this point you should be able to import *pyremo* from your locally | ||
built version: | ||
|
||
.. code-block:: sh | ||
$ python # start an interpreter | ||
>>> import pyremo | ||
>>> pyremo.__version__ | ||
The nice thing about the *editable* mode (that's the ``-e`` flag in the pip install command) is | ||
that you can edit the code directly in the package and use it without having to reinstall | ||
the package. If you work a lot in Jupyter notebooks for development, you should check out | ||
the autoreload magic, e.g., add a cell in the top of your notebook containing: | ||
|
||
.. code-block:: sh | ||
%load_ext autoreload | ||
%autoreload 2 | ||
This will allow you to edit the *pyremo* source code and use it directly in the notebook | ||
without having to restart the kernel. | ||
|
||
See the full conda docs `here <http://conda.pydata.org/docs>`__. |
This file was deleted.
Oops, something went wrong.
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
File renamed without changes.
Oops, something went wrong.