Skip to content

Commit

Permalink
ascii art added
Browse files Browse the repository at this point in the history
  • Loading branch information
praksharma committed Aug 17, 2024
1 parent 75435e4 commit 04c865f
Show file tree
Hide file tree
Showing 10 changed files with 82 additions and 4 deletions.
8 changes: 8 additions & 0 deletions .idea/.gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 12 additions & 0 deletions .idea/DeepINN.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/inspectionProfiles/Project_Default.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/inspectionProfiles/profiles_settings.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions .idea/modules.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 15 additions & 3 deletions DeepINN/backend/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,27 @@
# I have copied the PyTorch version of backend: https://github.com/lululxvi/deepxde/tree/master/deepxde/backend
import sys
from .utils import loss_metric, choose_optimiser
from ..__about__ import __version__

ascii_art = """>>================================================<<
||###### ### # # # #||
||# # ###### ###### ##### # ## # ## #||
||# # # # # # # # # # # # #||
||# # ##### ##### # # # # # # # # #||
||# # # # ##### # # # # # # #||
||# # # # # # # ## # ##||
||###### ###### ###### # ### # # # #||
>>================================================<<"""

def load_backend():
try:
import torch
print(ascii_art, file=sys.stderr, flush=True) # print ascii art
print("DeepINN version:" + __version__, file=sys.stderr, flush=True) # print DeepINN version
print("Using default backend: PyTorch", file=sys.stderr, flush=True) # print backend name like an error # https://www.askpython.com/python/python-stdin-stdout-stderr
print("Using Pytorch: ",torch.__version__, file=sys.stderr, flush=True) # print pytorch version
print("Pytorch version: ",torch.__version__, file=sys.stderr, flush=True) # print pytorch version

except ImportError:
raise ImportError('PyTorch not found.')

load_backend()

load_backend()
17 changes: 16 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,19 @@
# DeepINN

```
╔═══════════════════════════════════════════════════════════════════╗
║-/$$$$$$$-------------------------------/$$$$$$-/$$---/$$-/$$---/$$║
║|-$$__--$$-----------------------------|_--$$_/|-$$$-|-$$|-$$$-|-$$║
║|-$$--\-$$--/$$$$$$---/$$$$$$---/$$$$$$--|-$$--|-$$$$|-$$|-$$$$|-$$║
║|-$$--|-$$-/$$__--$$-/$$__--$$-/$$__--$$-|-$$--|-$$-$$-$$|-$$-$$-$$║
║|-$$--|-$$|-$$$$$$$$|-$$$$$$$$|-$$--\-$$-|-$$--|-$$--$$$$|-$$--$$$$║
║|-$$--|-$$|-$$_____/|-$$_____/|-$$--|-$$-|-$$--|-$$\--$$$|-$$\--$$$║
║|-$$$$$$$/|--$$$$$$$|--$$$$$$$|-$$$$$$$//$$$$$$|-$$-\--$$|-$$-\--$$║
║|_______/--\_______/-\_______/|-$$____/|______/|__/--\__/|__/--\__/║
║------------------------------|-$$---------------------------------║
║------------------------------|-$$---------------------------------║
║------------------------------|__/---------------------------------║
╚═══════════════════════════════════════════════════════════════════╝
```
[![DeepINN CI](https://github.com/praksharma/DeepINN/actions/workflows/main.yml/badge.svg)](https://github.com/praksharma/DeepINN/actions/workflows/main.yml) [![docker_container](https://github.com/praksharma/DeepINN/actions/workflows/docker.yml/badge.svg)](https://github.com/praksharma/DeepINN/actions/workflows/docker.yml) [![Codacy Badge](https://app.codacy.com/project/badge/Grade/a5c43d9b9e6a45759061ac654bdc1e3f)](https://www.codacy.com/gh/praksharma/DeepINN/dashboard?utm_source=github.com&amp;utm_medium=referral&amp;utm_content=praksharma/DeepINN&amp;utm_campaign=Badge_Grade)![Travis (.org) branch](https://app.travis-ci.com/praksharma/DeepINN.svg?branch=main)
[![Documentation Status](https://readthedocs.org/projects/deepinn/badge/?version=latest)](https://deepinn.readthedocs.io/en/latest/index.html?badge=latest) [![License](https://img.shields.io/badge/License-AGPL_v3-red.svg)](https://github.com/praksharma/DeepINN/blob/main/LICENSE)

Expand Down
1 change: 1 addition & 0 deletions todo.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ Last work : `DeepINN/constraint/gradients.py`
## Misc
- [x] Migrate to JupyterBooks.
- [x] Move everything after contribution in the [readme.md](readme.md) to the docs.
- [ ] Refactor training process and move things to recipes. For now the first recipe will be vanilla PINN.

## Technical stuff
- [ ] Substitute `raise NotImplementedError` to `@abc.abstractmethod` for better ABC implementation on concrete classes (classes where the member function are actually implemented).
Expand Down

0 comments on commit 04c865f

Please sign in to comment.