Skip to content

Commit b3e4112

Browse files
committed
removed nested double quotes in rbf.py
1 parent 0d404fd commit b3e4112

File tree

4 files changed

+53
-13
lines changed

4 files changed

+53
-13
lines changed

.markdownlint.json

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,20 @@
11
{
22
"default": true,
3-
"MD041": false,
4-
"MD012": false,
5-
"ignores": [
6-
"venv_pygem/**",
7-
"venv/**",
8-
"**/site-packages/**"
3+
"MD013": { "line_length": 80 },
4+
"MD040": true,
5+
"MD014": true,
6+
"ignore": [
7+
"venv*/**",
8+
"env*/**",
9+
".venv*/**",
10+
"**/site-packages/**",
11+
"**/dist-packages/**",
12+
"build/**",
13+
"dist/**",
14+
"*.egg-info/**",
15+
".mypy_cache/**",
16+
".pytest_cache/**",
17+
".cache/**",
18+
"node_modules/**"
919
]
1020
}

.markdownlintignore

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# Virtual environments
2+
venv*/
3+
env*/
4+
.venv*/
5+
6+
# Python packages
7+
**/site-packages/**
8+
**/dist-packages/**
9+
10+
# Build / distribution folders
11+
build/
12+
dist/
13+
*.egg-info/
14+
15+
# Cache and temporary files
16+
.mypy_cache/
17+
.pytest_cache/
18+
.cache/
19+
20+
# Node.js modules
21+
node_modules/

pygem/cad/__init__.py

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,19 @@
1-
"""PyGeM CAD init."""
1+
"""
2+
PyGeM CAD init
3+
"""
24

35
try:
4-
pass
6+
import OCC
57
except ModuleNotFoundError as e:
6-
print("\nOCC not found, but required to deal with CAD files")
7-
print("Install it using:")
8-
print("\tconda install -c conda-forge pythonocc-core=7.4.0")
9-
print("or visit https://github.com/tpaviot/pythonocc-core for more info\n")
8+
print('\nOCC not found, but required to deal with CAD files')
9+
print('Install it using:')
10+
print('\tconda install -c conda-forge pythonocc-core=7.4.0')
11+
print('or visit https://github.com/tpaviot/pythonocc-core for more info\n')
1012
raise e
13+
14+
15+
from .ffd import FFD
16+
from .rbf import RBF
17+
from .idw import IDW
18+
from .custom_deformation import CustomDeformation
19+
from .cad_deformation import CADDeformation

pygem/rbf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,7 @@ def write_parameters(self, filename="parameters_rbf.prm"):
308308
output_string += " polyharmonic_spline.\n"
309309
output_string += "# For a comprehensive list with details see the"
310310
output_string += " class RBF.\n"
311-
output_string += f"basis function: {"gaussian_spline"}\n"
311+
output_string += f"basis function: {'gaussian_spline'}\n"
312312

313313
output_string += "\n# radius is the scaling parameter r that affects"
314314
output_string += " the shape of the basis functions. See the"

0 commit comments

Comments
 (0)