Metadata-Version: 2.2
Name: releso
Version: 0.1.2
Author-email: Clemens Fricke <clemens.david.fricke@tuwien.ac.at>
License: MIT License
        
        Copyright (c) 2023 Clemens Fricke
        
        Permission is hereby granted, free of charge, to any person obtaining a copy
        of this software and associated documentation files (the "Software"), to deal
        in the Software without restriction, including without limitation the rights
        to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
        copies of the Software, and to permit persons to whom the Software is
        furnished to do so, subject to the following conditions:
        
        The above copyright notice and this permission notice shall be included in all
        copies or substantial portions of the Software.
        
        THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
        IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
        FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
        AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
        LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
        OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
        SOFTWARE.
        
Project-URL: homepage, https://github.com/clemens-fricke/releso
Project-URL: documentation, https://releso.readthedocs.io/en/latest/
Project-URL: issues, https://github.com/clemens-fricke/releso/issues
Project-URL: repository, https://github.com/clemens-fricke/releso.git
Classifier: Operating System :: OS Independent
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Natural Language :: English
Classifier: Topic :: Scientific/Engineering
Requires-Python: >=3.8
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: pydantic<2
Requires-Dist: stable-baselines3
Requires-Dist: tensorboard
Requires-Dist: hjson
Provides-Extra: all
Requires-Dist: splinepy[all]>=0.1.2; extra == "all"
Requires-Dist: torchvision; extra == "all"
Provides-Extra: test
Requires-Dist: pytest; extra == "test"
Requires-Dist: pytest-cov; extra == "test"
Provides-Extra: docs
Requires-Dist: sphinx; extra == "docs"
Requires-Dist: sphinx-rtd-theme; extra == "docs"
Requires-Dist: sphinx-jsonschema; extra == "docs"
Provides-Extra: dev
Requires-Dist: splinepy[all]>=0.1.2; extra == "dev"
Requires-Dist: torchvision; extra == "dev"
Requires-Dist: pytest; extra == "dev"
Requires-Dist: pytest-cov; extra == "dev"
Requires-Dist: sphinx; extra == "dev"
Requires-Dist: sphinx-rtd-theme; extra == "dev"
Requires-Dist: sphinx-jsonschema; extra == "dev"

# Reinforcement Learning based Shape Optimization (ReLeSO)

[![pypi_upload](https://github.com/tataratat/releso/actions/workflows/build_and_upload_wheels.yml/badge.svg)](https://github.com/tataratat/releso)
[![Read the docs](https://readthedocs.org/projects/releso/badge/?version=latest)](https://releso.readthedocs.io/en/latest/?badge=latest)
[![PyPI - Version](https://img.shields.io/pypi/v/releso)](https://pypi.org/project/releso/)
[![Python Versions](https://img.shields.io/pypi/pyversions/releso)](https://pypi.org/project/releso/)
[![PyPI - License](https://img.shields.io/pypi/l/releso)](https://github.com/tataratat/releso/blob/main/LICENSE)

Releso is a Library/Framework for
Reinforcement Learning based Shape Optimization. Please look into the
Documentation for information on how it works. The instruction on how the
documentation can be built is given below as well as the instruction on how the
package can be installed.
Alternatively, it can be installed from `pip` via `pip install releso`.


Documentation generation
========================

Install and usage instructions are provided in the documentation of the
project. The documentation can be built with the use of sphinx which is a `python`
tool to generate documentation.
> The sphinx packages can either be installed in the project python environment
or in a separate environment. If it does not matter in which python environment
sphinx is installed ignore the first two lines.

The following command line calls create a conda environment with all necessary
dependencies for building the documentation.
``` console
(base) $ conda create -n sphinx python=3.9
(base) $ conda activate sphinx
(sphinx) $ pip install ".[docs]"
```

The documentation is built by executing the following command inside the folder
`docs/`. After executing the command the documentation should be available
inside the folder [`docs/build/html/`](docs/build/html)

``` console
(sphinx) $ make html
```

Installation
============

This section covers the installation process of the framework and its
prerequisites. The first thing to note is that with version 0.1.0 the strict
dependency on `splinepy` is not present anymore. But if the
geometry is to be parameterized by a Spline and the method of Free Form
Deformation is to be used to deform a mesh, `splinepy` is still
necessary.

Prerequisites
-------------
To use `ReLeSO` the following packages have to be installed:
 - pydantic<2
 - stable-baselines3
 - tensorboard
 - hjson

 > The `pydantic` package currently needs to be on version 1.\*, we welcome
 anyone wanting to update `releso` to the new `pydantic` version.

The packages can be installed via pip or conda with the following commands:

**pip** (activation of the venv should be done beforehand)

``` console
(.venv) $ pip install pydantic stable-baselines3 tensorboard hjson
```

**conda**

``` console
(base) $ conda create -n releso python=3.9 "pydantic<2" tensorboard
(base) $ conda activate releso
(releso) $ pip install stable-baselines3 hjson
```

If the spline-based shape optimization functionality is needed, the package
``splinepy`` is needed. Please visit
[`splinepy` on github](https://github.com/tataratat/splinepy) for installation
instructions.

**Development**

To develop the framework further the sphinx package should also be installed
with the currently used sphinx html theme ``sphinx_rtd_theme``.
This can be done via:

``` console
(releso) $ pip install sphinx sphinx_rtd_theme
```

Framework
---------

After installing all prerequisites the framework itself can be installed by
running the command below in the main repository folder.

**Non-development**

```console
(releso) $ pip install .
```

**Development**

``` console
(releso) $ pip install -e "dev."
```
