From b8555d0a1f3caaa1313292edce80f2579f4ebb1e Mon Sep 17 00:00:00 2001 From: "V. Armando Sole" Date: Tue, 10 Mar 2015 10:33:36 +0100 Subject: [PATCH] Workaround licensecheck issue not recognizing license when more than two spaces follow the line comment character. --- PyMca5/PyMcaIO/MEDFile.py | 33 +++++++------- PyMca5/PyMcaIO/sps/Include/blissmalloc.h | 31 ++++++------- PyMca5/PyMcaIO/sps/Include/spec_shm.h | 30 ++++++------ PyMca5/PyMcaIO/sps/Include/sps.h | 31 ++++++------- PyMca5/PyMcaIO/sps/Src/sps.c | 31 ++++++------- PyMca5/PyMcaIO/sps/Src/sps_py.c | 31 ++++++------- PyMca5/PyMcaMath/linalg.py | 50 ++++++++++++-------- PyMca5/PyMcaMath/mva/Lanczos.py | 58 ++++++++++-------------- PyMca5/PyMcaMath/mva/NNMAModule.py | 30 ++++++++++++ 9 files changed, 176 insertions(+), 149 deletions(-) diff --git a/PyMca5/PyMcaIO/MEDFile.py b/PyMca5/PyMcaIO/MEDFile.py index 2a0f56067..1ea0e961b 100644 --- a/PyMca5/PyMcaIO/MEDFile.py +++ b/PyMca5/PyMcaIO/MEDFile.py @@ -1,24 +1,25 @@ #!/usr/bin/python # Copyright (c) 2010 Matthew Newville, The University of Chicago # -# Permission to use and redistribute the source code or binary forms of -# this software and its documentation, with or without modification is -# hereby granted provided that the above notice of copyright, these -# terms of use, and the disclaimer of warranty below appear in the -# source code and documentation, and that none of the names of The -# University of Chicago, The University of Washington, or the authors -# appear in advertising or endorsement of works derived from this -# software without specific prior written permission from all parties. +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: # -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. -# IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY -# CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, -# TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE -# SOFTWARE OR THE USE OR OTHER DEALINGS IN THIS SOFTWARE. +# The above copyright notice and this permission notice shall be included in +# all copies or substantial portions of the Software. # -__license__ = "BSD" +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +# THE SOFTWARE. +# +__license__ = "MIT" __author__ = "M. Newville - The University of Chicago" """ Simple interface to M. River's Multi-Element MCA Data Format diff --git a/PyMca5/PyMcaIO/sps/Include/blissmalloc.h b/PyMca5/PyMcaIO/sps/Include/blissmalloc.h index 6f4a5ccd5..2328c39ce 100644 --- a/PyMca5/PyMcaIO/sps/Include/blissmalloc.h +++ b/PyMca5/PyMcaIO/sps/Include/blissmalloc.h @@ -6,24 +6,23 @@ * of files designed to interface the shared-data structures used and defined * by the CSS "spec" package with other utility software. * -* Permission is hereby granted, free of charge, to any person obtaining a -* copy of the software in this file and associated header files (the -* "Software"), to deal in the Software without restriction, including -* without limitation the rights to use, copy, modify, merge, publish, -* distribute, sublicense, and/or sell copies of the Software, and to -* permit persons to whom the Software is furnished to do so, subject to -* the following conditions: +* Permission is hereby granted, free of charge, to any person obtaining a copy +* of this software and associated documentation files (the "Software"), to deal +* in the Software without restriction, including without limitation the rights +* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +* copies of the Software, and to permit persons to whom the Software is +* furnished to do so, subject to the following conditions: * -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. +* The above copyright notice and this permission notice shall be included in +* all copies or substantial portions of the Software. * -* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. -* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY -* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, -* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE -* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +* THE SOFTWARE. * ****************************************************************************/ #if MALLOC_DEBUG diff --git a/PyMca5/PyMcaIO/sps/Include/spec_shm.h b/PyMca5/PyMcaIO/sps/Include/spec_shm.h index fea65ecce..fa6ba48c5 100644 --- a/PyMca5/PyMcaIO/sps/Include/spec_shm.h +++ b/PyMca5/PyMcaIO/sps/Include/spec_shm.h @@ -8,23 +8,23 @@ * The software contained in this file "spec_shm.h" describes the * shared-data structures used and defined by the CSS "spec" package. * -* Permission is hereby granted, free of charge, to any person obtaining a -* copy of the software in this file (the "Software"), to deal in the -* Software without restriction, including without limitation the rights to -* use, copy, modify, merge, publish, distribute, sublicense, and/or sell -* copies of the Software, and to permit persons to whom the Software is -* furnished to do so, subject to the following conditions: +* Permission is hereby granted, free of charge, to any person obtaining a copy +* of this software and associated documentation files (the "Software"), to deal +* in the Software without restriction, including without limitation the rights +* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +* copies of the Software, and to permit persons to whom the Software is +* furnished to do so, subject to the following conditions: * -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. +* The above copyright notice and this permission notice shall be included in +* all copies or substantial portions of the Software. * -* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. -* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY -* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, -* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE -* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +* THE SOFTWARE. * ****************************************************************************/ diff --git a/PyMca5/PyMcaIO/sps/Include/sps.h b/PyMca5/PyMcaIO/sps/Include/sps.h index d299d8924..5cab41130 100644 --- a/PyMca5/PyMcaIO/sps/Include/sps.h +++ b/PyMca5/PyMcaIO/sps/Include/sps.h @@ -7,24 +7,23 @@ * the shared-data structures used and defined by the CSS "spec" package * with other utility software. * -* Permission is hereby granted, free of charge, to any person obtaining a -* copy of the software in this file and associated source file (the -* "Software"), to deal in the Software without restriction, including -* without limitation the rights to use, copy, modify, merge, publish, -* distribute, sublicense, and/or sell copies of the Software, and to -* permit persons to whom the Software is furnished to do so, subject to -* the following conditions: +* Permission is hereby granted, free of charge, to any person obtaining a copy +* of this software and associated documentation files (the "Software"), to deal +* in the Software without restriction, including without limitation the rights +* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +* copies of the Software, and to permit persons to whom the Software is +* furnished to do so, subject to the following conditions: * -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. +* The above copyright notice and this permission notice shall be included in +* all copies or substantial portions of the Software. * -* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. -* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY -* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, -* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE -* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +* THE SOFTWARE. * ****************************************************************************/ /**************************************************************************** diff --git a/PyMca5/PyMcaIO/sps/Src/sps.c b/PyMca5/PyMcaIO/sps/Src/sps.c index 8ef0380e6..b54b2c9ad 100644 --- a/PyMca5/PyMcaIO/sps/Src/sps.c +++ b/PyMca5/PyMcaIO/sps/Src/sps.c @@ -7,24 +7,23 @@ * the shared-data structures used and defined by the CSS "spec" package * with other utility software. * -* Permission is hereby granted, free of charge, to any person obtaining a -* copy of the software in this file and associated header files (the -* "Software"), to deal in the Software without restriction, including -* without limitation the rights to use, copy, modify, merge, publish, -* distribute, sublicense, and/or sell copies of the Software, and to -* permit persons to whom the Software is furnished to do so, subject to -* the following conditions: +* Permission is hereby granted, free of charge, to any person obtaining a copy +* of this software and associated documentation files (the "Software"), to deal +* in the Software without restriction, including without limitation the rights +* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +* copies of the Software, and to permit persons to whom the Software is +* furnished to do so, subject to the following conditions: * -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. +* The above copyright notice and this permission notice shall be included in +* all copies or substantial portions of the Software. * -* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. -* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY -* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, -* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE -* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +* THE SOFTWARE. * ****************************************************************************/ /**************************************************************************** diff --git a/PyMca5/PyMcaIO/sps/Src/sps_py.c b/PyMca5/PyMcaIO/sps/Src/sps_py.c index 909005415..bcfbf1aa3 100644 --- a/PyMca5/PyMcaIO/sps/Src/sps_py.c +++ b/PyMca5/PyMcaIO/sps/Src/sps_py.c @@ -6,24 +6,23 @@ * the shared-data structures used and defined by the CSS "spec" package * with other utility software. * -* Permission is hereby granted, free of charge, to any person obtaining a -* copy of the software in this file and associated header files (the -* "Software"), to deal in the Software without restriction, including -* without limitation the rights to use, copy, modify, merge, publish, -* distribute, sublicense, and/or sell copies of the Software, and to -* permit persons to whom the Software is furnished to do so, subject to -* the following conditions: +* Permission is hereby granted, free of charge, to any person obtaining a copy +* of this software and associated documentation files (the "Software"), to deal +* in the Software without restriction, including without limitation the rights +* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +* copies of the Software, and to permit persons to whom the Software is +* furnished to do so, subject to the following conditions: * -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. +* The above copyright notice and this permission notice shall be included in +* all copies or substantial portions of the Software. * -* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. -* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY -* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, -* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE -* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +* THE SOFTWARE. * ****************************************************************************/ /* #include */ diff --git a/PyMca5/PyMcaMath/linalg.py b/PyMca5/PyMcaMath/linalg.py index a38b8b4b5..c10c864ad 100644 --- a/PyMca5/PyMcaMath/linalg.py +++ b/PyMca5/PyMcaMath/linalg.py @@ -1,30 +1,40 @@ -# Copyright (c) 2008-2014 V.A. Sole, ESRF +#/*########################################################################## # -# Permission to use and redistribute the source code or binary forms of -# this software and its documentation, with or without modification is -# hereby granted provided that the above notice of copyright, these -# terms of use, and the disclaimer of warranty below appear in the -# source code and documentation, and that none of the names of The -# European Synchrotron Radiation Facility, or the authors -# appear in advertising or endorsement of works derived from this -# software without specific prior written permission from all parties. +# The PyMca X-Ray Fluorescence Toolkit # -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. -# IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY -# CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, -# TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE -# SOFTWARE OR THE USE OR OTHER DEALINGS IN THIS SOFTWARE. +# Copyright (c) 2004-2015 European Synchrotron Radiation Facility # -import numpy -__license__ = "BSD" +# This file is part of the PyMca X-ray Fluorescence Toolkit developed at +# the ESRF by the Software group. +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in +# all copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +# THE SOFTWARE. +# +#############################################################################*/ __author__ = "V.A. Sole - ESRF Data Analysis" +__contact__ = "sole@esrf.fr" +__license__ = "MIT" +__copyright__ = "European Synchrotron Radiation Facility, Grenoble, France" +import numpy __doc__ = """ Similar function to the numpy lstsq function with a more rigorous uncertainty treatement besides other optimizations in view of simultaneously solving several -equations of the form `a x = b`. Hopefully licensed under the same terms as -numpy itself (BSD license). +equations of the form `a x = b`. """ # Linear Least Squares diff --git a/PyMca5/PyMcaMath/mva/Lanczos.py b/PyMca5/PyMcaMath/mva/Lanczos.py index 054e9e70c..2deaa2c28 100644 --- a/PyMca5/PyMcaMath/mva/Lanczos.py +++ b/PyMca5/PyMcaMath/mva/Lanczos.py @@ -1,37 +1,27 @@ -## /************************************************************************ -## -## Copyright -## Alessandro MIRONE -## mirone@esrf.fr -## -## Copyright 2002 by European Synchrotron Radiation Facility, Grenoble, -## France -## -## ---------- -## -## All Rights Reserved -## -## ---------- -## -## Permission to use, copy, modify, and distribute this software and its -## documentation for any purpose and without fee is hereby granted, -## provided that the above copyright notice appear in all copies and that -## both that copyright notice and this permission notice appear in -## supporting documentation, and that the names of European Synchrotron -## Radiation Facility or ESRF or SCISOFT not be used in advertising or -## publicity pertaining to distribution of the software without specific, -## written prior permission. -## -## EUROPEAN SYNCHROTRON RADIATION FACILITY DISCLAIMS ALL WARRANTIES WITH -## REGARD TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF -## MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL EUROPEAN SYNCHROTRON -## RADIATION FACILITY OR ESRF BE LIABLE FOR ANY SPECIAL, INDIRECT OR -## CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, -## DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER -## TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR -## PERFORMANCE OF THIS SOFTWARE. -## -## **************************************************************************/ +#/*########################################################################## +# +# +# Copyright (c) 2002 European Synchrotron Radiation Facility +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in +# all copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +# THE SOFTWARE. +# +#############################################################################*/ __author__ = "A. Mirone - ESRF SciSoft Group" __license__ = "MIT" import math diff --git a/PyMca5/PyMcaMath/mva/NNMAModule.py b/PyMca5/PyMcaMath/mva/NNMAModule.py index 95aaa3ed1..12581f42e 100644 --- a/PyMca5/PyMcaMath/mva/NNMAModule.py +++ b/PyMca5/PyMcaMath/mva/NNMAModule.py @@ -1,3 +1,33 @@ +#*/########################################################################### +# Copyright (c) 2009 Uwe Schmitt, uschmitt@mineway.de +# +# +# Redistribution and use in source and binary forms, with or without +# modification, are permitted provided that the following conditions are +# met: +# +# * Redistributions of source code must retain the above copyright +# * notice, this list of conditions and the following disclaimer. +# * Redistributions in binary form must reproduce the above +# * copyright notice, this list of conditions and the following +# * disclaimer in the documentation and/or other materials provided +# * with the distribution. Neither the name of the +# * nor the names of its contributors may be used to endorse or +# * promote products derived from this software without specific +# * prior written permission. +# +# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +#*/########################################################################### __author__ = "Uwe Schmitt uschmitt@mineway.de, wrapped by V.A. Sole - ESRF" __license__ = "BSD" __doc__ = """