Skip to content

Commit

Permalink
Merge pull request #7 from mimesis-inria/sql-dataset
Browse files Browse the repository at this point in the history
SQL Database
  • Loading branch information
RobinEnjalbert authored Dec 14, 2022
2 parents 95fa21b + acfeda4 commit 910411f
Show file tree
Hide file tree
Showing 150 changed files with 6,712 additions and 6,348 deletions.
661 changes: 661 additions & 0 deletions LICENSE

Large diffs are not rendered by default.

36 changes: 15 additions & 21 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
## DeepPhysX

![logo](docs/source/_static/image/logo.png)

### Interfacing AI with simulation

The **DeepPhysX** project provides Python packages allowing users to easily interface their **numerical simulations**
Expand Down Expand Up @@ -38,34 +40,26 @@ $ pip install DeepPhysX.Sofa # Install simulation package
$ pip install DeepPhysX.Torch # Install AI package
```

If cloning sources, create a `DeepPhysX` repository to store every package.
Packages must be cloned in a directory with the corresponding name as shown below:

``` bash
$ mkdir DeepPhysX
$ cd DeepPhysX
$ git clone https://github.com/mimesis-inria/DeepPhysX.git Core # Clone default package
$ git clone https://github.com/mimesis-inria/DeepPhysX.Sofa.git Sofa # Clone simulation package
$ git clone https://github.com/mimesis-inria/DeepPhysX.Torch.git Torch # Clone AI package
$ ls
Core Sofa Torch
```


### Demos

**DeepPhysX** includes a set of detailed tutorials, examples and demos.
Following this installation process to directly try the **interactive demos**:
As these scripts are producing data, they cannot be run in the python site-packages, thus they should be run locally.
Use the *command line interface* to get the examples or to run **interactive demos**:

``` bash
$ mkdir DeepPhysX
$ cd DeepPhysX
$ git clone https://github.com/mimesis/deepphysx.git Core # Make shure to clone this repository in 'DeepPhysX/Core'
$ cd Core
$ python3 config.py # Answer 'yes' to install Torch package to launch examples
$ pip install .
$ DPX --get # Get the full example repository locally
$ DPX --run <demo> # Run one of the demo scripts
```

| **Armadillo**<br>`python3 demo.py armadillo` | **Beam**<br>`python3 demo.py beam` | **Liver**<br>`python3 demo.py liver` |
| **Armadillo**<br>`DPX -r armadillo` | **Beam**<br>`DPX -r beam` | **Liver**<br>`DPX -r liver` |
|:-----------------------------------------------------:|:-------------------------------------------:|:---------------------------------------------:|
| ![armadillo](docs/source/_static/image/armadillo.png) | ![beam](docs/source/_static/image/beam.png) | ![liver](docs/source/_static/image/liver.png) |


### References

Did this project help you for your research ? Please cite us as:

R. Enjalbert, A. Odot and S. Cotin, *DeepPhysX, a python framework to interface AI with numerical simulation*,
Zenodo, 2022, [**DOI**](https://doi.org/10.5281/zenodo.7389505)
File renamed without changes.
86 changes: 0 additions & 86 deletions config.py

This file was deleted.

18 changes: 0 additions & 18 deletions demo.py

This file was deleted.

52 changes: 0 additions & 52 deletions dev.py

This file was deleted.

Binary file added docs/source/_static/image/about_tree.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed docs/source/_static/image/about_working_session.png
Binary file not shown.
Binary file added docs/source/_static/image/database.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed docs/source/_static/image/dataset.png
Binary file not shown.
Binary file added docs/source/_static/image/environment_tcp_ip.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed docs/source/_static/image/environment_tcpip.png
Binary file not shown.
Binary file added docs/source/_static/image/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed docs/source/_static/image/overview_architecture.png
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
21 changes: 8 additions & 13 deletions docs/source/api/core.rst
Original file line number Diff line number Diff line change
Expand Up @@ -11,25 +11,22 @@ CORE
- :doc:`core/environment`
- :doc:`core/manager`

* - | :ref:`asyncsocket.abstractenvironment`
| :ref:`asyncsocket.bytesconverter`
* - | :ref:`asyncsocket.bytesconverter`
| :ref:`asyncsocket.tcpipclient`
| :ref:`asyncsocket.tcpipobject`
| :ref:`asyncsocket.tcpipserver`
- | :ref:`dataset.basedataset`
| :ref:`dataset.basedatasetconfig`
- | :ref:`database.databasehandler`
| :ref:`database.basedatabaseconfig`
- | :ref:`environment.baseenvironment`
| :ref:`environment.baseenvironmentconfig`
- | :ref:`manager.datamanager`
| :ref:`manager.datasetmanager`
| :ref:`manager.databasemanager`
| :ref:`manager.environmentmanager`
| :ref:`manager.manager`
| :ref:`manager.networkmanager`
| :ref:`manager.statsmanager`
| :ref:`manager.visualizermanager`

.. list-table::
Expand All @@ -46,15 +43,13 @@ CORE
| :ref:`network.baseoptimization`
| :ref:`network.datatransformation`
- | :ref:`pipelines.basedatagenerator`
- | :ref:`pipelines.basedatageneration`
| :ref:`pipelines.basepipeline`
| :ref:`pipelines.baserunner`
| :ref:`pipelines.basetrainer`
| :ref:`pipelines.baseprediction`
| :ref:`pipelines.basetraining`
- | :ref:`visualizer.vedoobjects`
- | :ref:`visualizer.vedofactory`
| :ref:`visualizer.vedovisualizer`
|
| :ref:`Visualizer.Factories <factories>`

.. toctree::
Expand Down
9 changes: 0 additions & 9 deletions docs/source/api/core/asyncsocket.rst
Original file line number Diff line number Diff line change
@@ -1,14 +1,6 @@
AsyncSocket
===========

.. _asyncsocket.abstractenvironment:

AbstractEnvironment
___________________

.. autoclass:: AbstractEnvironment.AbstractEnvironment
:members:

.. _asyncsocket.bytesconverter:

BytesConverter
Expand All @@ -23,7 +15,6 @@ TcpIpClient
___________

Bases:
:py:class:`AbstractEnvironment.AbstractEnvironment`
:py:class:`TcpIpObject.TcpIpObject`

.. autoclass:: TcpIpClient.TcpIpClient
Expand Down
16 changes: 8 additions & 8 deletions docs/source/api/core/dataset.rst
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
Dataset
=======

.. _dataset.basedataset:
.. _database.databasehandler:

BaseDataset
-----------
DatabaseHandler
---------------

.. autoclass:: BaseDataset.BaseDataset
.. autoclass:: DatabaseHandler.DatabaseHandler
:members:

.. _dataset.basedatasetconfig:
.. _database.basedatabaseconfig:

BaseDatasetConfig
-----------------
BaseDatabaseConfig
------------------

.. autoclass:: BaseDatasetConfig.BaseDatasetConfig
.. autoclass:: BaseDatabaseConfig.BaseDatabaseConfig
:members:
3 changes: 0 additions & 3 deletions docs/source/api/core/environment.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,6 @@ Environment
BaseEnvironment
---------------

Bases:
:py:class:`TcpIpClient.TcpIpClient`

.. autoclass:: BaseEnvironment.BaseEnvironment
:members:

Expand Down
59 changes: 0 additions & 59 deletions docs/source/api/core/factories.rst

This file was deleted.

Loading

0 comments on commit 910411f

Please sign in to comment.