diff --git a/.gitignore b/.gitignore index b680166..08229e8 100644 --- a/.gitignore +++ b/.gitignore @@ -10,6 +10,7 @@ sandbox/ # Byte-compiled / optimized / DLL files __pycache__/ +*_cache/ *.py[cod] *$py.class diff --git a/.vscode/launch.json b/.vscode/launch.json new file mode 100644 index 0000000..306f58e --- /dev/null +++ b/.vscode/launch.json @@ -0,0 +1,16 @@ +{ + // Use IntelliSense to learn about possible attributes. + // Hover to view descriptions of existing attributes. + // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 + "version": "0.2.0", + "configurations": [ + { + "name": "Python: Current File", + "type": "python", + "request": "launch", + "program": "${file}", + "console": "integratedTerminal", + "justMyCode": true + } + ] +} \ No newline at end of file diff --git a/.vscode/linux.env b/.vscode/linux.env new file mode 100644 index 0000000..3781571 --- /dev/null +++ b/.vscode/linux.env @@ -0,0 +1,4 @@ +# linux +PYTHONPATH = "/home/postgres/dhca/pyeit:/home/postgres/dhca/eitmesh:/home/postgres/dhca/pydhca" +# Jupyter: run all cells +# ctrl + alt + r diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..533f74f --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,12 @@ +{ + "python.testing.unittestArgs": [ + "-v", + "-s", + "./tests", + "-p", + "*test.py", + "test*.py", + ], + "python.testing.pytestEnabled": true, + "python.testing.unittestEnabled": false +} \ No newline at end of file diff --git a/.vscode/windows.env b/.vscode/windows.env new file mode 100644 index 0000000..ba939b4 --- /dev/null +++ b/.vscode/windows.env @@ -0,0 +1,4 @@ +# windows +PYTHONPATH = "D:/dhca/pyeit;D:/dhca/eitmesh;D:/dhca/pydhca" +# Jupyter: run all cells +# ctrl + alt + r