Skip to content

Commit 5242992

Browse files
committed
name change
1 parent 51465a8 commit 5242992

File tree

8 files changed

+30
-30
lines changed

8 files changed

+30
-30
lines changed

Showcase.ipynb

+3-3
Original file line numberDiff line numberDiff line change
@@ -2,22 +2,22 @@
22
"cells": [
33
{
44
"cell_type": "code",
5-
"execution_count": 1,
5+
"execution_count": 2,
66
"metadata": {},
77
"outputs": [],
88
"source": [
99
"import numpy as np\n",
1010
"import scipy\n",
1111
"import matplotlib.pyplot as plt\n",
12-
"from pylump import Model\n",
12+
"from pyLump import Model\n",
1313
"import pyExSi"
1414
]
1515
},
1616
{
1717
"cell_type": "markdown",
1818
"metadata": {},
1919
"source": [
20-
"# Showcase of the package ``pylump``"
20+
"# Showcase of the package ``pyLump``"
2121
]
2222
},
2323
{

docs/source/code_documentation.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@ Code documentation
66
The ``Model`` class
77
-------------------
88

9-
.. autoclass:: pylump.Model
9+
.. autoclass:: pyLump.Model
1010
:members:

docs/source/conf.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
# -- Project information -----------------------------------------------------
2020
# https://www.sphinx-doc.org/en/master/usage/configuration.html#project-information
2121

22-
project = 'pylump'
22+
project = 'pyLump'
2323
copyright = '2023, Ladisk'
2424
author = 'Ladisk'
2525

docs/source/index.rst

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
.. pylump documentation master file, created by
1+
.. pyLump documentation master file, created by
22
sphinx-quickstart on Wed Oct 4 07:41:54 2023.
33
You can adapt this file completely to your liking, but it should at least
44
contain the root `toctree` directive.
55
6-
Welcome to pylump documentation!
6+
Welcome to pyLump documentation!
77
=================================
8-
This is the documentation for pylump package. Check out the project source_.
8+
This is the documentation for pyLump package. Check out the project source_.
99

1010
Check out the :doc:`tutorial <tutorial>` section for further information.
1111

@@ -18,4 +18,4 @@ Check out the :doc:`tutorial <tutorial>` section for further information.
1818
code_documentation
1919

2020

21-
.. _source: https://github.com/ladisk/pylump
21+
.. _source: https://github.com/ladisk/pyLump

docs/source/tutorial.rst

+3-3
Original file line numberDiff line numberDiff line change
@@ -6,19 +6,19 @@ For a more detailed use with real examples visit the :doc:`showcase <Showcase>`
66

77
Installation
88
------------
9-
To use pylump, first install it using pip:
9+
To use pyLump, first install it using pip:
1010

1111
.. code-block:: console
1212
13-
$ pip install pylump
13+
$ pip install pyLump
1414
1515
Instance of the ``Model`` class
1616
-------------------------------
1717
We start by creating the Model object the following way:
1818

1919
.. code:: python
2020
21-
a = pylump.Model(
21+
a = pyLump.Model(
2222
n_dof,
2323
mass,
2424
stiffness,

pyproject.toml

+5-5
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ requires = ["hatchling"]
33
build-backend = "hatchling.build"
44

55
[project]
6-
name = "pylump"
7-
version = "0.1.0"
6+
name = "pyLump"
7+
version = "0.1.1"
88
authors = [{name = "Luka Novak, Domen Gorjup, Janko Slavič", email = "[email protected]"}]
99
maintainers = [{name = "Luka Novak, Domen Gorjup, Janko Slavič", email = "[email protected]"}]
1010
license = "MIT"
@@ -44,6 +44,6 @@ dev = [
4444
]
4545

4646
[project.urls]
47-
homepage = "https://github.com/ladisk/pylump"
48-
documentation = "https://pylump.readthedocs.io/en/latest/"
49-
source = "https://github.com/ladisk/pylump"
47+
homepage = "https://github.com/ladisk/pyLump"
48+
documentation = "https://pyLump.readthedocs.io/en/latest/"
49+
source = "https://github.com/ladisk/pyLump"

readme.rst

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
1-
pylump
1+
pyLump
22
======
33

44
Multi Degree of Freedom (mass-spring-damper) Models.
55
----------------------------------------------------
66
For more information check out the showcase examples and see documentation_.
77

8-
Basic ``pylump`` usage:
8+
Basic ``pyLump`` usage:
99
--------------------------
1010

1111
Make an instance of the ``Model`` class:
1212
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1313

1414
.. code:: python
1515
16-
a = pylump.Model(
16+
a = pyLump.Model(
1717
n_dof,
1818
mass,
1919
stiffness,
@@ -57,4 +57,4 @@ We can calculate the systems response based on known excitation the following wa
5757
resp_dof
5858
)
5959
60-
.. _documentation: https://pylump.readthedocs.io/en/latest/
60+
.. _documentation: https://pyLump.readthedocs.io/en/latest/

tests/test_models.py

+9-9
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
"""
2-
Unit tests for pylump.py
2+
Unit tests for pyLump.py
33
"""
44

55
import numpy as np
@@ -9,12 +9,12 @@
99
myPath = os.path.dirname(os.path.abspath(__file__))
1010
sys.path.insert(0, myPath + '/../')
1111

12-
import pylump
12+
import pyLump
1313

1414

1515
def test_matrices():
1616
# both:
17-
model = pylump.Model(3, 1, 1, 1, boundaries="both")
17+
model = pyLump.Model(3, 1, 1, 1, boundaries="both")
1818

1919
M = np.array([[1, 0, 0],
2020
[0, 1, 0],
@@ -33,7 +33,7 @@ def test_matrices():
3333
np.testing.assert_equal(model.get_damping_matrix(), C)
3434

3535
# left
36-
model = pylump.Model(3, 1, 1, 1, boundaries="left")
36+
model = pyLump.Model(3, 1, 1, 1, boundaries="left")
3737

3838
M = np.array([[1, 0, 0],
3939
[0, 1, 0],
@@ -52,7 +52,7 @@ def test_matrices():
5252
np.testing.assert_equal(model.get_damping_matrix(), C)
5353

5454
# right:
55-
model = pylump.Model(3, 1, 1, 1, boundaries="right")
55+
model = pyLump.Model(3, 1, 1, 1, boundaries="right")
5656

5757
M = np.array([[1, 0, 0],
5858
[0, 1, 0],
@@ -71,7 +71,7 @@ def test_matrices():
7171
np.testing.assert_equal(model.get_damping_matrix(), C)
7272

7373
# free
74-
model = pylump.Model(3, 1, 1, 1, boundaries="free")
74+
model = pyLump.Model(3, 1, 1, 1, boundaries="free")
7575

7676
M = np.array([[1, 0, 0],
7777
[0, 1, 0],
@@ -91,7 +91,7 @@ def test_matrices():
9191

9292

9393
def test_FRF():
94-
model = pylump.Model(3, 1, 1, 1, boundaries="both")
94+
model = pyLump.Model(3, 1, 1, 1, boundaries="both")
9595

9696
M = np.array([[1, 0, 0],
9797
[0, 1, 0],
@@ -120,7 +120,7 @@ def test_FRF():
120120

121121

122122
def test_h():
123-
model = pylump.Model(3, 1, 1, 1, boundaries="both")
123+
model = pyLump.Model(3, 1, 1, 1, boundaries="both")
124124

125125
M = np.array([[1, 0, 0],
126126
[0, 1, 0],
@@ -149,7 +149,7 @@ def test_h():
149149

150150

151151
def test_response():
152-
model = pylump.Model(3, 0.1, 10, 0.01, boundaries="both")
152+
model = pyLump.Model(3, 0.1, 10, 0.01, boundaries="both")
153153

154154
M = np.array([[0.1, 0, 0],
155155
[0, 0.1, 0],

0 commit comments

Comments
 (0)