Skip to content

Commit 1ab9613

Browse files
committed
Move slycot/examples.py to examples/examples.py, delete examples test
1 parent 880eff5 commit 1ab9613

File tree

7 files changed

+40
-80
lines changed

7 files changed

+40
-80
lines changed

doc/source/examples/examples.rst

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
**********************
2+
Collection of examples
3+
**********************
4+
5+
Code
6+
====
7+
8+
.. literalinclude:: ../../../examples/examples.py
9+
:language: python
10+
:linenos:

doc/source/examples/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ Python scripts
99
.. toctree::
1010
:maxdepth: 1
1111

12+
examples
1213
ad13dd_example
1314

14-
1515
Jupyter notebooks
1616
=================
1717

examples/ab13dd_example.py

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,18 @@
1-
# Enrico Avventi 2010
1+
# Copyright 2010 Enrico Avventi <[email protected]>
2+
#
3+
# This program is free software; you can redistribute it and/or modify
4+
# it under the terms of the GNU General Public License version 2 as
5+
# published by the Free Software Foundation.
6+
#
7+
# This program is distributed in the hope that it will be useful,
8+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
9+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10+
# GNU General Public License for more details.
11+
#
12+
# You should have received a copy of the GNU General Public License
13+
# along with this program; if not, write to the Free Software
14+
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
15+
# MA 02110-1301, USA.
216

317
import numpy as np
418
import slycot

slycot/examples.py renamed to examples/examples.py

Lines changed: 13 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,19 @@
1-
#
2-
# examples.py
1+
# Copyright 2010 Enrico Avventi <[email protected]>
32
#
4-
# Copyright 2010 Enrico Avventi <[email protected]>
3+
# This program is free software; you can redistribute it and/or modify
4+
# it under the terms of the GNU General Public License version 2 as
5+
# published by the Free Software Foundation.
56
#
6-
# This program is free software; you can redistribute it and/or modify
7-
# it under the terms of the GNU General Public License version 2 as
8-
# published by the Free Software Foundation.
7+
# This program is distributed in the hope that it will be useful,
8+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
9+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10+
# GNU General Public License for more details.
911
#
10-
# This program is distributed in the hope that it will be useful,
11-
# but WITHOUT ANY WARRANTY; without even the implied warranty of
12-
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13-
# GNU General Public License for more details.
14-
#
15-
# You should have received a copy of the GNU General Public License
16-
# along with this program; if not, write to the Free Software
17-
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
18-
# MA 02110-1301, USA.
12+
# You should have received a copy of the GNU General Public License
13+
# along with this program; if not, write to the Free Software
14+
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
15+
# MA 02110-1301, USA.
16+
1917
from numpy import array, ones
2018
import slycot
2119

slycot/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -632,7 +632,7 @@ set(F2PYSOURCE_DEPS
632632

633633
set(PYSOURCE
634634

635-
__init__.py examples.py exceptions.py
635+
__init__.py exceptions.py
636636
analysis.py math.py synthesis.py transform.py
637637
)
638638

slycot/tests/CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ set(PYSOURCE
55
test_ab04md.py
66
test_ab08n.py
77
test_ag08bd.py
8-
test_examples.py
98
test_exceptions.py
109
test_mb.py
1110
test_mc.py

slycot/tests/test_examples.py

Lines changed: 0 additions & 61 deletions
This file was deleted.

0 commit comments

Comments
 (0)