From 0b4b97e81dc428d7d2072ac7cf41fa5a1e41983b Mon Sep 17 00:00:00 2001 From: John Vouvakis Manousakis <70679997+ioannis-vm@users.noreply.github.com> Date: Thu, 25 Apr 2024 06:49:43 -0700 Subject: [PATCH] Improve writing style in `README.rst` (#419) * Improve writing style in `README.rst` * Update dev install instructions - There is no `requirements-dev.txt` - `pyproject.toml` defines `[dev]` --- README.rst | 79 +++++++++++++++++++++++++++--------------------------- 1 file changed, 40 insertions(+), 39 deletions(-) diff --git a/README.rst b/README.rst index 67dff5fc..cf5b15af 100644 --- a/README.rst +++ b/README.rst @@ -23,64 +23,66 @@ * `Changelog `_ * `License `_ -Chaospy is a numerical toolbox for performing uncertainty quantification using -polynomial chaos expansions, advanced Monte Carlo methods implemented in -Python. It also include a full suite of tools for doing low-discrepancy -sampling, quadrature creation, polynomial manipulations, and a lot more. - -The philosophy behind ``chaospy`` is not to be a single tool that solves every -uncertainty quantification problem, but instead be a specific tools to aid to -let the user solve problems themselves. This includes both well established -problems, but also to be a foundry for experimenting with new problems, that -are not so well established. To do this, emphasis is put on the following: - -* Focus on an easy to use interface that embraces the `pythonic code style - `_. -* Make sure the code is "composable", such a way that changing one part of the - code with something user defined should be easy and encouraged. -* Try to support a broad width of the various methods for doing uncertainty - quantification where that makes sense to involve ``chaospy``. -* Make sure that ``chaospy`` plays nice with a large set of of other other - similar projects. This includes `numpy `_, `scipy - `_, `scikit-learn `_, - `statsmodels `_, `openturns - `_, and `gstools `_ - to mention a few. -* Contribute all code to the community open source. +Chaospy is a numerical toolbox designed for performing uncertainty +quantification through polynomial chaos expansions and advanced Monte +Carlo methods implemented in Python. It includes a comprehensive suite +of tools for low-discrepancy sampling, quadrature creation, polynomial +manipulations, and much more. + +The philosophy behind ``chaospy`` is not to serve as a single solution +for all uncertainty quantification challenges, but rather to provide +specific tools that empower users to solve problems themselves. This +approach accommodates well-established problems but also serves as a +foundry for experimenting with new, emerging problems. Emphasis is +placed on the following: + +* Focus on an easy-to-use interface that embraces the `pythonic code + style `. +* Ensure the code is "composable," meaning it's designed so that users + can easily and effectively modify parts of the code with their own + solutions. +* Strive to support a broad range of methods for uncertainty + quantification where it makes sense to use ``chaospy``. +* Ensure that ``chaospy`` integrates well with a wide array of other + projects, including `numpy `, `scipy + `, `scikit-learn `, + `statsmodels `, `openturns + `, and `gstools + `, among others. +* Contribute all code as open source to the community. Installation ============ -Installation should be straight forward from `pip `_: +Installation is straightforward via `pip `_: .. code-block:: bash pip install chaospy -Or if `Conda `_ is more to your liking: +Alternatively, if you prefer `Conda `_: .. code-block:: bash conda install -c conda-forge chaospy -Then go over to the `documentation `_ -to see how to use the toolbox. +After installation, visit the `documentation +`_ to learn how to use the +toolbox. Development =========== -Installing ``chaospy`` and its dependencies in developer mode is done as -follows: +To install ``chaospy`` and its dependencies in developer mode: .. code-block:: bash - pip install -r requirements-dev.txt - pip install -e . + pip install -e .[dev] Testing ------- -To ensure that the code run on your local system, run the following: +To run tests on your local system: .. code-block:: bash @@ -89,16 +91,15 @@ To ensure that the code run on your local system, run the following: Documentation ------------- -The documentation build assumes that ``pandoc`` is installed on your -system and available in your path. +Ensure that ``pandoc`` is installed and available in your path to +build the documentation. -To build documentation locally on your system, use ``make`` from the ``docs/`` -folder: +From the ``docs/`` directory, build the documentation locally using: .. code-block:: bash cd docs/ make html -Run ``make`` without argument to get a list of build targets. -The HTML target stores output to the folder ``doc/.build/html``. +Run ``make`` without arguments to view other build targets. +The HTML documentation will be output to ``doc/.build/html``.