diff --git a/.github/scripts/blender_pyversion_lookup.py b/.github/scripts/blender_pyversion_lookup.py index f854229a..8ff257e8 100644 --- a/.github/scripts/blender_pyversion_lookup.py +++ b/.github/scripts/blender_pyversion_lookup.py @@ -27,7 +27,6 @@ "2.93": '3.9', "3.3": "3.10", "3.6": "3.10", - } if __name__ == "__main__": diff --git a/VERSION b/VERSION index 47af7abd..f1547e6d 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -2.0.7-alpha +2.0.7 diff --git a/docs/src/changelog.rst b/docs/src/changelog.rst index a7bc5021..aea48619 100644 --- a/docs/src/changelog.rst +++ b/docs/src/changelog.rst @@ -2,6 +2,28 @@ Changelog ######### +****************** +2.0.7 (08-17-2021) +****************** + +This is a maintenance release which improves compatibility with ``blender`` add-on development ideals along with some fixes. + +**New Features**: + +- CI and packaging using Github Actions +- Make runtime errors more informative +- Preliminary support for exporting to COMSOL +- BlendGAMer support for Blender 2.93LTS + +**Fixes**: + +- Normal smooth no longer applies on the boundaries of a mesh +- Resolves an issue where computing normals fails due to zero-area faces + +**Other**: + +- Update versions of dependencies (Eigen, Tetgen, Pybind11, Google-Test) + ****************** 2.0.6 (02-25-2020) ****************** @@ -87,4 +109,4 @@ This is a maintenance release which improves compatibility with ``blender`` add- **New Features**: -- Stable beta release! Compilation is supported on major operating systems (:pr:`16`). \ No newline at end of file +- Stable beta release! Compilation is supported on major operating systems (:pr:`16`). diff --git a/pygamer/src/pygamer.cpp b/pygamer/src/pygamer.cpp index 445b1ea1..0bdc1630 100644 --- a/pygamer/src/pygamer.cpp +++ b/pygamer/src/pygamer.cpp @@ -116,6 +116,21 @@ PYBIND11_MODULE(pygamer, pygamer) { )delim" ); + pygamer.def("readPDB_distgrid", &readPDB_distgrid, + py::arg("filename"), + py::arg("radius") = 1.4, + R"delim( + Compute the Connolly surface using a distance grid based strategy + + Args: + filename (:py:class:`str`): PDB file to read. + radius (:py:class:`float`): Radius in Angstroms of ball to roll over surface. + + Returns: + :py:class:`surfacemesh.SurfaceMesh`: Meshed object. + )delim" + ); + pygamer.def("readPDB_gauss", &readPDB_gauss, py::arg("filename"), py::arg("blobbyness") = -0.2, diff --git a/tools/blendgamer/src/colormap.py b/tools/blendgamer/src/colormap.py index e885bf60..6c613c20 100644 --- a/tools/blendgamer/src/colormap.py +++ b/tools/blendgamer/src/colormap.py @@ -38,7 +38,6 @@ "PRGN": plt.cm.PRGn, } - def curveToData(crv, context): """ Helper function to take a curvature object and return smoothed data. @@ -218,6 +217,7 @@ def dataToVertexColor(crv, context, showplot=False, saveplot=False): # Add axis for colorbar and plot it ax = fig.add_axes([0.75, 0.05, 0.05, 0.9]) + cb = mpl.colorbar.Colorbar( ax, cmap=curvature_map, norm=norm, orientation="vertical" )