Skip to content

Commit

Permalink
Merge pull request #14 from tataratat/ft-bump-v
Browse files Browse the repository at this point in the history
v0.0.5
  • Loading branch information
j042 authored Feb 6, 2024
2 parents 12dbec9 + c968fec commit 844bc58
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 8 deletions.
2 changes: 1 addition & 1 deletion feigen/_version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "0.0.4"
__version__ = "0.0.5"
14 changes: 10 additions & 4 deletions feigen/nurbs_weights.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,9 @@ class NURBSWeights(vedo.Plotter, FeigenBase):

__slots__ = ("_c", "_s")

def __init__(self, spline=None): # noqa PLR0915
def __init__(
self, spline=None, w_min=_W_MIN, w_max=_W_MAX
): # noqa PLR0915
"""
Create spline and setup callbacks
"""
Expand All @@ -119,6 +121,10 @@ def __init__(self, spline=None): # noqa PLR0915
# set title name
self._c["window_title"] = "NURBS Weights"

# set weights extrema
self._c["w_min"] = w_min
self._c["w_max"] = w_max

# sampling resolutions
default_sampling_resolution = 50
self._c["sample_resolutions"] = default_sampling_resolution
Expand Down Expand Up @@ -343,7 +349,7 @@ def start(self):
)

self.show(
"Solution - right click to sync",
"Jacobian Determinant - right click to sync",
at=self._c["server_plot"],
interactive=False,
mode=self._c["plotter_mode"],
Expand All @@ -360,8 +366,8 @@ def start(self):
self._weight_slider,
pos1=[*pos1, 0],
pos2=[*pos2, 0],
xmin=_W_MIN,
xmax=_W_MAX,
xmin=self._c["w_min"],
xmax=self._c["w_max"],
value=1,
s=0.04,
title="weight",
Expand Down
7 changes: 4 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,16 +21,17 @@ classifiers = [
'Operating System :: Microsoft :: Windows',
'Operating System :: POSIX',
'Operating System :: MacOS',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
'Programming Language :: Python :: 3.12',
]
dependencies = [
'vedo==2023.4.6',
'vedo>=2023.5.0',
'numpy',
'splinepy[all]>=0.0.47',
'gustaf>=0.0.23',
'splinepy[all]>=0.0.51',
'websockets',
]
dynamic = ['version']
Expand Down

0 comments on commit 844bc58

Please sign in to comment.