]> CRI, Mines Paris - PSL - linpy.git/commitdiff
Fix license headers
authorVivien Maisonneuve <v.maisonneuve@gmail.com>
Tue, 5 Aug 2014 16:53:17 +0000 (18:53 +0200)
committerVivien Maisonneuve <v.maisonneuve@gmail.com>
Tue, 5 Aug 2014 16:53:17 +0000 (18:53 +0200)
21 files changed:
LICENSE [moved from license.rst with 100% similarity]
examples/bac2014.py
examples/diamonds.py
examples/menger.py
examples/nsad2010.py
examples/squares.py
examples/tesseract.py
pypol/__init__.py
pypol/_islhelper.c
pypol/domains.py
pypol/geometry.py
pypol/islhelper.py
pypol/linexprs.py
pypol/polyhedra.py
pypol/tests/__init__.py
pypol/tests/libhelper.py
pypol/tests/test_domains.py
pypol/tests/test_geometry.py
pypol/tests/test_linexprs.py
pypol/tests/test_polyhedra.py
setup.py

similarity index 100%
rename from license.rst
rename to LICENSE
index 866ed82c04d75e7232025cc3c7154951599dbb26..bb8969d6c2387b811481dc541149ca832f7b4488 100755 (executable)
@@ -1,22 +1,5 @@
 #!/usr/bin/env python3
 
-"""
-    This file is part of Linpy.
-
-    Linpy is free software: you can redistribute it and/or modify
-    it under the terms of the GNU General Public License as published by
-    the Free Software Foundation, either version 3 of the License, or
-    (at your option) any later version.
-
-    Linpy is distributed in the hope that it will be useful,
-    but WITHOUT ANY WARRANTY; without even the implied warranty of
-    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-    GNU General Public License for more details.
-
-    You should have received a copy of the GNU General Public License
-    along with Linpy.  If not, see <http://www.gnu.org/licenses/>.
-"""
-
 from pypol import *
 
 x, y, z = symbols('x y z')
@@ -24,5 +7,3 @@ DF = Eq(x, y) & Eq(z, 6 - 2*x)
 P = Eq(x + y - 2*z, 0)
 
 print('DF ∩ P =', DF & P)
-
-# Copyright 2014 MINES ParisTech  
index 56af7e3d7553034997ff5f6180c9bb9dc21acace..d5119b4561f8768981686939548cbb4c6da26cac 100755 (executable)
@@ -1,22 +1,5 @@
 #!/usr/bin/env python3
 
-"""
-    This file is part of Linpy.
-
-    Linpy is free software: you can redistribute it and/or modify
-    it under the terms of the GNU General Public License as published by
-    the Free Software Foundation, either version 3 of the License, or
-    (at your option) any later version.
-
-    Linpy is distributed in the hope that it will be useful,
-    but WITHOUT ANY WARRANTY; without even the implied warranty of
-    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-    GNU General Public License for more details.
-
-    You should have received a copy of the GNU General Public License
-    along with Linpy.  If not, see <http://www.gnu.org/licenses/>.
-"""
-
 import matplotlib.pyplot as plt
 
 from matplotlib import pylab
@@ -63,5 +46,3 @@ cubo = Le(0, x) & Le(x, 5) & Le(0, y) & Le(y, 5) & Le(0, z) & Le(z, 5) & \
 cubo.plot(cubo_plot, facecolors=(0, 0, 1, 0.75))
 
 pylab.show()
-
-# Copyright 2014 MINES ParisTech  
index b6ab90daa414a0457bc9edd4a858b719fc51cbdd..9ec958fc6488e997e902052da9530822ee1a8857 100755 (executable)
@@ -1,22 +1,5 @@
 #!/usr/bin/env python3
 
-"""
-    This file is part of Linpy.
-
-    Linpy is free software: you can redistribute it and/or modify
-    it under the terms of the GNU General Public License as published by
-    the Free Software Foundation, either version 3 of the License, or
-    (at your option) any later version.
-
-    Linpy is distributed in the hope that it will be useful,
-    but WITHOUT ANY WARRANTY; without even the implied warranty of
-    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-    GNU General Public License for more details.
-
-    You should have received a copy of the GNU General Public License
-    along with Linpy.  If not, see <http://www.gnu.org/licenses/>.
-"""
-
 import argparse
 
 import matplotlib.pyplot as plt
@@ -84,5 +67,3 @@ if __name__ == '__main__':
     plot = fig.add_subplot(1, 1, 1, projection='3d', aspect='equal')
     fractal.plot(plot)
     pylab.show()
-    
-# Copyright 2014 MINES ParisTech  
index f310f9db9422a3e73c2db8f0e754da0777268b70..0a252794ef667da87bd887dc43dab225c1b4ff5a 100755 (executable)
@@ -1,22 +1,5 @@
 #!/usr/bin/env python3
 
-"""
-    This file is part of Linpy.
-
-    Linpy is free software: you can redistribute it and/or modify
-    it under the terms of the GNU General Public License as published by
-    the Free Software Foundation, either version 3 of the License, or
-    (at your option) any later version.
-
-    Linpy is distributed in the hope that it will be useful,
-    but WITHOUT ANY WARRANTY; without even the implied warranty of
-    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-    GNU General Public License for more details.
-
-    You should have received a copy of the GNU General Public License
-    along with Linpy.  If not, see <http://www.gnu.org/licenses/>.
-"""
-
 from pypol import *
 
 
@@ -61,5 +44,3 @@ if __name__ == '__main__':
         [i, j], [iprime, jprime])
     print('T  =', transformer.polyhedron)
     print('T* =', transformer.star().polyhedron)
-    
-# Copyright 2014 MINES ParisTech  
index 1df6e3d21c608e9c1812e719fd310e75037d846f..e00821eb13b74b563daaa488b4b3198784c6c267 100755 (executable)
@@ -1,22 +1,5 @@
 #!/usr/bin/env python3
 
-"""
-    This file is part of Linpy.
-
-    Linpy is free software: you can redistribute it and/or modify
-    it under the terms of the GNU General Public License as published by
-    the Free Software Foundation, either version 3 of the License, or
-    (at your option) any later version.
-
-    Linpy is distributed in the hope that it will be useful,
-    but WITHOUT ANY WARRANTY; without even the implied warranty of
-    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-    GNU General Public License for more details.
-
-    You should have received a copy of the GNU General Public License
-    along with Linpy.  If not, see <http://www.gnu.org/licenses/>.
-"""
-
 from pypol import *
 
 a, x, y, z = symbols('a x y z')
@@ -93,5 +76,3 @@ print()
 print('the verticies for s are:', p.vertices())
 print()
 print(p.plot())
-
-# Copyright 2014 MINES ParisTech  
index eaccf43ff22e87a1bf4f4a04bc493476e636ef1e..b2a5e975b11f7602c4ca3b12c535a4f3fc30d72b 100755 (executable)
@@ -1,22 +1,5 @@
 #!/usr/bin/env python3
 
-"""
-    This file is part of Linpy.
-
-    Linpy is free software: you can redistribute it and/or modify
-    it under the terms of the GNU General Public License as published by
-    the Free Software Foundation, either version 3 of the License, or
-    (at your option) any later version.
-
-    Linpy is distributed in the hope that it will be useful,
-    but WITHOUT ANY WARRANTY; without even the implied warranty of
-    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-    GNU General Public License for more details.
-
-    You should have received a copy of the GNU General Public License
-    along with Linpy.  If not, see <http://www.gnu.org/licenses/>.
-"""
-
 from pypol import *
 
 x, y, z, t = symbols('x y z t')
@@ -38,5 +21,3 @@ print('Faces of tesseract\n\n  {}\n\nare:\n'.format(tesseract))
 for face in faces(tesseract):
     assert(len(face.vertices()) == 8)
     print('  {}'.format(face))
-    
-# Copyright 2014 MINES ParisTech  
index 8d0af9258d3eee2b4c2af0c0e54039b7ff389710..1df47286c75150e069c642d1292cd985171701d3 100644 (file)
@@ -1,23 +1,23 @@
-"""
-    This file is part of Linpy.
-
-    Linpy is free software: you can redistribute it and/or modify
-    it under the terms of the GNU General Public License as published by
-    the Free Software Foundation, either version 3 of the License, or
-    (at your option) any later version.
-
-    Linpy is distributed in the hope that it will be useful,
-    but WITHOUT ANY WARRANTY; without even the implied warranty of
-    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-    GNU General Public License for more details.
+# Copyright 2014 MINES ParisTech
+#
+# This file is part of Linpy.
+#
+# Linpy is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# Linpy is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with Linpy.  If not, see <http://www.gnu.org/licenses/>.
 
-    You should have received a copy of the GNU General Public License
-    along with Linpy.  If not, see <http://www.gnu.org/licenses/>.
 """
-
-    """
-    A polyhedral library based on ISL.
-    """
+A polyhedral library based on ISL.
+"""
 
 from .geometry import Point, Vector
 from .linexprs import Expression, Symbol, Dummy, symbols, Rational
@@ -31,5 +31,3 @@ __all__ = [
     'Polyhedron', 'Eq', 'Ne', 'Le', 'Lt', 'Ge', 'Gt', 'Empty', 'Universe',
     'Domain', 'And', 'Or', 'Not',
 ]
-
-# Copyright 2014 MINES ParisTech
index 467a7cacbce206a6103471a0338dc1b395e04fe7..6757ae1fad303c94094f4a0cac3e68f8524a30cd 100644 (file)
@@ -1,19 +1,19 @@
-/*
-    This file is part of Linpy.
-
-    Linpy is free software: you can redistribute it and/or modify
-    it under the terms of the GNU General Public License as published by
-    the Free Software Foundation, either version 3 of the License, or
-    (at your option) any later version.
-
-    Linpy is distributed in the hope that it will be useful,
-    but WITHOUT ANY WARRANTY; without even the implied warranty of
-    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-    GNU General Public License for more details.
-
-    You should have received a copy of the GNU General Public License
-    along with Linpy.  If not, see <http://www.gnu.org/licenses/>.
-*/
+// Copyright 2014 MINES ParisTech
+//
+// This file is part of Linpy.
+//
+// Linpy is free software: you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by
+// the Free Software Foundation, either version 3 of the License, or
+// (at your option) any later version.
+//
+// Linpy is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License
+// along with Linpy.  If not, see <http://www.gnu.org/licenses/>.
 
 #include <Python.h>
 
@@ -160,5 +160,3 @@ PyMODINIT_FUNC PyInit__islhelper(void) {
     }
     return m;
 }
-
-// Copyright 2014 MINES ParisTech
index b529163a318899221478e80b7d09555094170920..f918e142d187adf8f9c01a69f5ea191cc8396112 100644 (file)
@@ -1,19 +1,19 @@
-"""
-    This file is part of Linpy.
-
-    Linpy is free software: you can redistribute it and/or modify
-    it under the terms of the GNU General Public License as published by
-    the Free Software Foundation, either version 3 of the License, or
-    (at your option) any later version.
-
-    Linpy is distributed in the hope that it will be useful,
-    but WITHOUT ANY WARRANTY; without even the implied warranty of
-    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-    GNU General Public License for more details.
-
-    You should have received a copy of the GNU General Public License
-    along with Linpy.  If not, see <http://www.gnu.org/licenses/>.
-"""
+# Copyright 2014 MINES ParisTech
+#
+# This file is part of Linpy.
+#
+# Linpy is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# Linpy is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with Linpy.  If not, see <http://www.gnu.org/licenses/>.
 
 import ast
 import functools
@@ -713,5 +713,3 @@ def Not(domain):
     Returns the complement of this set.
     """
     return ~domain
-    
-# Copyright 2014 MINES ParisTech
index dffa6086c75f6dff8b8df86862564317c901354e..9a5fa8f5b3388e52c24c2d5fc811440ef97d4d40 100644 (file)
@@ -1,19 +1,19 @@
-"""
-    This file is part of Linpy.
-
-    Linpy is free software: you can redistribute it and/or modify
-    it under the terms of the GNU General Public License as published by
-    the Free Software Foundation, either version 3 of the License, or
-    (at your option) any later version.
-
-    Linpy is distributed in the hope that it will be useful,
-    but WITHOUT ANY WARRANTY; without even the implied warranty of
-    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-    GNU General Public License for more details.
-
-    You should have received a copy of the GNU General Public License
-    along with Linpy.  If not, see <http://www.gnu.org/licenses/>.
-"""
+# Copyright 2014 MINES ParisTech
+#
+# This file is part of Linpy.
+#
+# Linpy is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# Linpy is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with Linpy.  If not, see <http://www.gnu.org/licenses/>.
 
 import math
 import numbers
@@ -307,5 +307,3 @@ class Vector(Coordinates):
             coordinates = self._map2(other, operator.sub)
             return other.__class__(coordinates)
         return NotImplemented
-        
-# Copyright 2014 MINES ParisTech
index 18e888ba20577e63ae13e63b76f8fa94ec6ea16c..7201882b0a78c4c445fc77ef39acbbf12fff1a8b 100644 (file)
@@ -1,19 +1,19 @@
-"""
-    This file is part of Linpy.
-
-    Linpy is free software: you can redistribute it and/or modify
-    it under the terms of the GNU General Public License as published by
-    the Free Software Foundation, either version 3 of the License, or
-    (at your option) any later version.
-
-    Linpy is distributed in the hope that it will be useful,
-    but WITHOUT ANY WARRANTY; without even the implied warranty of
-    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-    GNU General Public License for more details.
-
-    You should have received a copy of the GNU General Public License
-    along with Linpy.  If not, see <http://www.gnu.org/licenses/>.
-"""
+# Copyright 2014 MINES ParisTech
+#
+# This file is part of Linpy.
+#
+# Linpy is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# Linpy is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with Linpy.  If not, see <http://www.gnu.org/licenses/>.
 
 import ctypes, ctypes.util
 
@@ -69,5 +69,3 @@ def isl_multi_aff_to_str(islmaff):
     islpr = libisl.isl_printer_print_multi_aff(islpr, islmaff)
     string = libisl.isl_printer_get_str(islpr).decode()
     return string
-    
-# Copyright 2014 MINES ParisTech
index 3dd03efcb7aa066b63105096b20a8d2190cfea99..bd3ad5a61b125903ca9006ee88cdce8e9aa0a8e4 100644 (file)
@@ -1,19 +1,19 @@
-"""
-    This file is part of Linpy.
-
-    Linpy is free software: you can redistribute it and/or modify
-    it under the terms of the GNU General Public License as published by
-    the Free Software Foundation, either version 3 of the License, or
-    (at your option) any later version.
-
-    Linpy is distributed in the hope that it will be useful,
-    but WITHOUT ANY WARRANTY; without even the implied warranty of
-    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-    GNU General Public License for more details.
-
-    You should have received a copy of the GNU General Public License
-    along with Linpy.  If not, see <http://www.gnu.org/licenses/>.
-"""
+# Copyright 2014 MINES ParisTech
+#
+# This file is part of Linpy.
+#
+# Linpy is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# Linpy is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with Linpy.  If not, see <http://www.gnu.org/licenses/>.
 
 import ast
 import functools
@@ -477,5 +477,3 @@ class Rational(Expression, Fraction):
             return Rational(expr)
         else:
             raise TypeError('expr must be a sympy.Rational instance')
-            
-# Copyright 2014 MINES ParisTech
index cedb5c06afdf8f73fbcc4f3eddfd406f75d63816..8e226022f536c936a22063c1249174e56c0b02c1 100644 (file)
@@ -1,19 +1,19 @@
-"""
-    This file is part of Linpy.
-
-    Linpy is free software: you can redistribute it and/or modify
-    it under the terms of the GNU General Public License as published by
-    the Free Software Foundation, either version 3 of the License, or
-    (at your option) any later version.
-
-    Linpy is distributed in the hope that it will be useful,
-    but WITHOUT ANY WARRANTY; without even the implied warranty of
-    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-    GNU General Public License for more details.
-
-    You should have received a copy of the GNU General Public License
-    along with Linpy.  If not, see <http://www.gnu.org/licenses/>.
-"""
+# Copyright 2014 MINES ParisTech
+#
+# This file is part of Linpy.
+#
+# Linpy is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# Linpy is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with Linpy.  If not, see <http://www.gnu.org/licenses/>.
 
 import functools
 import math
@@ -388,5 +388,3 @@ def Ge(left, right):
     Assert first set is greater than or equal to the second set.
     """
     return Polyhedron([], [left - right])
-
-# Copyright 2014 MINES ParisTech
index 691d568275695a4276425b613a066908f61c62f8..072bb70bf641ecbbf4bc44360eeadf9c6514865b 100644 (file)
@@ -1,18 +1,16 @@
-"""
-    This file is part of Linpy.
-
-    Linpy is free software: you can redistribute it and/or modify
-    it under the terms of the GNU General Public License as published by
-    the Free Software Foundation, either version 3 of the License, or
-    (at your option) any later version.
-
-    Linpy is distributed in the hope that it will be useful,
-    but WITHOUT ANY WARRANTY; without even the implied warranty of
-    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-    GNU General Public License for more details.
-
-    You should have received a copy of the GNU General Public License
-    along with Linpy.  If not, see <http://www.gnu.org/licenses/>.
-"""
-
-# Copyright 2014 MINES ParisTech   
+# Copyright 2014 MINES ParisTech
+#
+# This file is part of Linpy.
+#
+# Linpy is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# Linpy is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with Linpy.  If not, see <http://www.gnu.org/licenses/>.
index 00fc59c58c4e733df2a2b600834fa1db4189d77c..1ac25d3dd7682e91b9d70bb9f927aad3b234f3f0 100644 (file)
@@ -1,19 +1,19 @@
-"""
-    This file is part of Linpy.
-
-    Linpy is free software: you can redistribute it and/or modify
-    it under the terms of the GNU General Public License as published by
-    the Free Software Foundation, either version 3 of the License, or
-    (at your option) any later version.
-
-    Linpy is distributed in the hope that it will be useful,
-    but WITHOUT ANY WARRANTY; without even the implied warranty of
-    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-    GNU General Public License for more details.
-
-    You should have received a copy of the GNU General Public License
-    along with Linpy.  If not, see <http://www.gnu.org/licenses/>.
-"""
+# Copyright 2014 MINES ParisTech
+#
+# This file is part of Linpy.
+#
+# Linpy is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# Linpy is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with Linpy.  If not, see <http://www.gnu.org/licenses/>.
 
 import functools
 import unittest
@@ -35,5 +35,3 @@ except ImportError:
         def wrapper(self):
             raise unittest.SkipTest('SymPy is not available')
         return wrapper
-
-# Copyright 2014 MINES ParisTech   
index 529025e62c0d678eecbcc792e950d7c4ccb83202..9cb3a9819a0bd40e8ffbe6cd0a170323cde08e83 100644 (file)
@@ -1,19 +1,19 @@
-"""
-    This file is part of Linpy.
-
-    Linpy is free software: you can redistribute it and/or modify
-    it under the terms of the GNU General Public License as published by
-    the Free Software Foundation, either version 3 of the License, or
-    (at your option) any later version.
-
-    Linpy is distributed in the hope that it will be useful,
-    but WITHOUT ANY WARRANTY; without even the implied warranty of
-    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-    GNU General Public License for more details.
-
-    You should have received a copy of the GNU General Public License
-    along with Linpy.  If not, see <http://www.gnu.org/licenses/>.
-"""
+# Copyright 2014 MINES ParisTech
+#
+# This file is part of Linpy.
+#
+# Linpy is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# Linpy is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with Linpy.  If not, see <http://www.gnu.org/licenses/>.
 
 import unittest
 
@@ -178,5 +178,3 @@ class TestDomain(unittest.TestCase):
         self.assertTrue(self.square1.involves_dims(symbols('x y')))
         self.assertFalse(self.empty.involves_dims(symbols('x')))
         self.assertFalse(self.universe.involves_dims(symbols('x')))
-        
-# Copyright 2014 MINES ParisTech   
index a241ffa9ec60d6c4aa06709c550da40e80b4e88f..45ffa3c5858dd9dfab025ec406d517455dca4066 100644 (file)
@@ -1,19 +1,19 @@
-"""
-    This file is part of Linpy.
-
-    Linpy is free software: you can redistribute it and/or modify
-    it under the terms of the GNU General Public License as published by
-    the Free Software Foundation, either version 3 of the License, or
-    (at your option) any later version.
-
-    Linpy is distributed in the hope that it will be useful,
-    but WITHOUT ANY WARRANTY; without even the implied warranty of
-    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-    GNU General Public License for more details.
-
-    You should have received a copy of the GNU General Public License
-    along with Linpy.  If not, see <http://www.gnu.org/licenses/>.
-"""
+# Copyright 2014 MINES ParisTech
+#
+# This file is part of Linpy.
+#
+# Linpy is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# Linpy is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with Linpy.  If not, see <http://www.gnu.org/licenses/>.
 
 import math
 import unittest
@@ -106,5 +106,3 @@ class TestVector(unittest.TestCase):
     def test_sub(self):
         self.assertEqual(self.vec1 - self.pt1, Point({self.x: 10, self.y: 25, self.z: 39}))
         self.assertEqual(self.vec1 - self.vec2, Vector({self.x: -25, self.y: -40, self.z: -40}))
-        
-# Copyright 2014 MINES ParisTech
index 2bdd33a2d2ac858045192f113877fe33465a68f9..0fca90ee0bc1d905717f39c099db33d4df7b027f 100644 (file)
@@ -1,19 +1,19 @@
-"""
-    This file is part of Linpy.
-
-    Linpy is free software: you can redistribute it and/or modify
-    it under the terms of the GNU General Public License as published by
-    the Free Software Foundation, either version 3 of the License, or
-    (at your option) any later version.
-
-    Linpy is distributed in the hope that it will be useful,
-    but WITHOUT ANY WARRANTY; without even the implied warranty of
-    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-    GNU General Public License for more details.
-
-    You should have received a copy of the GNU General Public License
-    along with Linpy.  If not, see <http://www.gnu.org/licenses/>.
-"""
+# Copyright 2014 MINES ParisTech
+#
+# This file is part of Linpy.
+#
+# Linpy is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# Linpy is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with Linpy.  If not, see <http://www.gnu.org/licenses/>.
 
 import functools
 import unittest
@@ -322,5 +322,3 @@ class TestRational(unittest.TestCase):
         self.assertEqual(Rational.fromsympy(sympy.Rational(22, 7)), self.pi)
         with self.assertRaises(TypeError):
             Rational.fromsympy(sympy.Symbol('x'))
-            
-# Copyright 2014 MINES ParisTech
index 066e3d103d58cd05899c488e258660a1d2255e86..30d5d5fb08986cce70e2cf7c669cbf678c7849fa 100644 (file)
@@ -1,19 +1,19 @@
-"""
-    This file is part of Linpy.
-
-    Linpy is free software: you can redistribute it and/or modify
-    it under the terms of the GNU General Public License as published by
-    the Free Software Foundation, either version 3 of the License, or
-    (at your option) any later version.
-
-    Linpy is distributed in the hope that it will be useful,
-    but WITHOUT ANY WARRANTY; without even the implied warranty of
-    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-    GNU General Public License for more details.
-
-    You should have received a copy of the GNU General Public License
-    along with Linpy.  If not, see <http://www.gnu.org/licenses/>.
-"""
+# Copyright 2014 MINES ParisTech
+#
+# This file is part of Linpy.
+#
+# Linpy is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# Linpy is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with Linpy.  If not, see <http://www.gnu.org/licenses/>.
 
 import functools
 import unittest
@@ -90,5 +90,3 @@ class TestUniverse:
 
     def test_isuniverse(self):
         self.assertTrue(Universe.isuniverse())
-
-# Copyright 2014 MINES ParisTech        
index 263882506f3aadc9c314e78cc3866228754b61f2..f72af50ea32dadff4c272759cb6c94236196e762 100755 (executable)
--- a/setup.py
+++ b/setup.py
@@ -1,22 +1,21 @@
 #!/usr/bin/env python3
 
-"""
-    This file is part of Linpy.
-
-    Linpy is free software: you can redistribute it and/or modify
-    it under the terms of the GNU General Public License as published by
-    the Free Software Foundation, either version 3 of the License, or
-    (at your option) any later version.
-
-    Linpy is distributed in the hope that it will be useful,
-    but WITHOUT ANY WARRANTY; without even the implied warranty of
-    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-    GNU General Public License for more details.
-
-    You should have received a copy of the GNU General Public License
-    along with Linpy.  If not, see <http://www.gnu.org/licenses/>.
-"""
-
+# Copyright 2014 MINES ParisTech
+#
+# This file is part of Linpy.
+#
+# Linpy is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# Linpy is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with Linpy.  If not, see <http://www.gnu.org/licenses/>.
 
 from distutils.core import setup, Extension
 
@@ -31,5 +30,3 @@ setup(
             libraries=['isl'])
     ]
 )
-
-# Copyright 2014 MINES ParisTech