Skip to main content

\n# DeepINN DeepINN CI docker_container Codacy BadgeTravis (.org) branch Documentation Status License

DeepINN is a deep-learning framework for solving forward and inverse problem involving PDEs using physics-informed neural networks (PINNs).

Contribution

Create a venv in the root of the repo. Here the assumption is that the python is symlink to python3.

python -m venv .venv

Activate the environment.

source .venv/bin/activate

Confirm that the Python path is updated.

which python

The STDOUT should point to the .venv directory. Now, upgrade the pip.

python -m pip install --upgrade pip

Install the required packages.

pip install -r requirements.txt

If you want to build the docs using the same environment, then install the relevant dependencies.

pip install -r docs/requirements.txt

Testing

The testing is very simple. Just run the test.py file in the current Python virtual environment.

python test.py

Docker image

Pull the image with suitable tagname. The image is available here.

docker pull prakhars962/deepinn:tagname

CPU Only

The image opens a jupyter server by default.

docker run -p 8888:8888 prakhars962/deepinn:pre-release

You can override the jupyter server entrypoint using the following command.

docker run -it --entrypoint /bin/bash prakhars962/deepinn:pre-release

GPU passthrough

First install nvidia-docker using this guide.

Now run the container with nvidia-docker.

nvidia-docker run -it --entrypoint /bin/bash prakhars962/deepinn:pre-release

This command will bind the pwd to /workspace/tutorials and open a jupyter-lab with GPU support.

nvidia-docker run -v $(pwd):/workspace/tutorials -p 8888:8888  prakhars962/deepinn:pre-release

Alternatively, one can run interactive session.

nvidia-docker run -v $(pwd):/workspace/tutorials -it --entrypoint /bin/bash  prakhars962/deepinn:pre-release

Tagless copy

Each time you pull the updated image, docker will create a tagless copy of the old one.

╰─ docker images                              
REPOSITORY            TAG           IMAGE ID       CREATED             SIZE
prakhars962/deepinn   pre-release   886808706155   4 minutes ago       6.99GB
prakhars962/deepinn   <none>        0bb744f6159e   38 minutes ago      6.99GB
prakhars962/deepinn   <none>        4ffbb67f8447   About an hour ago   6.8GB
prakhars962/deepinn   <none>        fe16ca34f9d9   About an hour ago   6.8GB

The only solution is to delete them one by one using the IMAGE_ID.

docker image rm -f IMAGE_ID

Metadata

Release files for DeepINN 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for DeepINN 1.0.0
File Size Uploaded Provenance Actions
DeepINN-1.0.0.tar.gz 79.7 kB Without provenance Details for DeepINN-1.0.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for DeepINN 1.0.0
File Interpreter ABI Platform Actions
DeepINN-1.0.0-py3-none-any.whl Python 3 none any Details for DeepINN-1.0.0-py3-none-any.whl

Total release size: 183.8 kB

Release files / DeepINN-1.0.0.tar.gz

Download URL DeepINN-1.0.0.tar.gz
Size 79.7 kB
Tags Source
SHA-256 checksum
How to use checksums
7f74c183a857ec184be778bfb70b7735d64c2e763fdd135e233f8e622be24797
BLAKE2b-256 checksum
How to use checksums
445e548678642ba3de9f2c7b706fe92a7fea84a23208d56efd6172a401e90cbf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.17

Release files / DeepINN-1.0.0-py3-none-any.whl

Download URL DeepINN-1.0.0-py3-none-any.whl
Size 104.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
508b3985fbace6ecad785aae92b24760452e978f6fc0f5a2d8bbdaff755009da
BLAKE2b-256 checksum
How to use checksums
abadcb3a26c9f9c718eb8b8ec863884e84a316654136c0367717e59f35dfd8ef
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.17

Security for DeepINN 1.0.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page