Skip to content

Commit 851d1dd

Browse files
committed
Merge branch 'main' into release/0.3
2 parents be6aac6 + 0c9dba8 commit 851d1dd

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ Here is a basic preprocessing example:
7979

8080
Get the input file from "pydyna\\src\\ansys\\dyna\\core\\pre\\examples\\explicit\\ball_plate\\ball_plate.k"
8181

82-
The follow example can be obtained from "pydyna\examples\Explicit\ball_plate.py"
82+
The follow example can be obtained from "pydyna\\examples\\Explicit\\ball_plate.py"
8383

8484
.. code:: python
8585

pyproject.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ dependencies = [
3434
tests = [
3535
"pyvista==0.40.1",
3636
"matplotlib==3.7.2",
37-
"numpy==1.25.1",
37+
"numpy==1.25.2",
3838
"pytest==7.4.0",
3939
"pytest-cov==4.1.0",
4040
"joblib==1.3.1",
@@ -51,7 +51,7 @@ doc = [
5151
"imageio-ffmpeg==0.4.8",
5252
"pyvista==0.40.1",
5353
"numpydoc==1.5.0",
54-
"Sphinx==7.1.0",
54+
"Sphinx==7.1.1",
5555
"sphinx-autobuild==2021.3.14",
5656
"sphinxcontrib-websupport==1.2.4",
5757
"pytest-sphinx==0.5.0",
@@ -62,7 +62,7 @@ doc = [
6262
"ansys-sphinx-theme==0.10.0",
6363
"pypandoc==1.11",
6464
"nbsphinx==0.9.2",
65-
"ipywidgets==8.0.7",
65+
"ipywidgets==8.1.0",
6666
"joblib==1.3.1",
6767
"scikit-learn==1.3.0",
6868
"ipython==8.14.0",

src/ansys/dyna/core/pre/dynabase.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,8 +119,10 @@ def __init__(self, sfo=1, x=[], y=[], func=None):
119119
self.ordinate = y
120120
self.func = func
121121

122-
def create(self, stub):
122+
def create(self, stub=None):
123123
"""Create a curve."""
124+
if stub is None:
125+
stub = DynaBase.get_stub()
124126
if self.func != None:
125127
ret = stub.CreateDefineCurveFunction(DefineCurveFunctionRequest(function=self.func))
126128
else:

0 commit comments

Comments
 (0)