Skip to content

Commit

Permalink
Add GPL headers to each Python file. Closing #46
Browse files Browse the repository at this point in the history
  • Loading branch information
hugobuddel committed Nov 15, 2024
1 parent 312de46 commit 1878b7f
Show file tree
Hide file tree
Showing 47 changed files with 890 additions and 0 deletions.
18 changes: 18 additions & 0 deletions metisp/pymetis/src/pymetis/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
"""
This file is part of the METIS Pipeline.
Copyright (C) 2024 European Southern Observatory
This program 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 2 of the License, or
(at your option) any later version.
This program 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 this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
"""
19 changes: 19 additions & 0 deletions metisp/pymetis/src/pymetis/base/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,22 @@
"""
This file is part of the METIS Pipeline.
Copyright (C) 2024 European Southern Observatory
This program 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 2 of the License, or
(at your option) any later version.
This program 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 this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
"""

from .recipe import MetisRecipe
from .impl import MetisRecipeImpl
from .product import PipelineProduct
19 changes: 19 additions & 0 deletions metisp/pymetis/src/pymetis/base/impl.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,22 @@
"""
This file is part of the METIS Pipeline.
Copyright (C) 2024 European Southern Observatory
This program 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 2 of the License, or
(at your option) any later version.
This program 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 this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
"""

from abc import ABC, abstractmethod
from typing import Dict, Any

Expand Down
19 changes: 19 additions & 0 deletions metisp/pymetis/src/pymetis/base/input.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,22 @@
"""
This file is part of the METIS Pipeline.
Copyright (C) 2024 European Southern Observatory
This program 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 2 of the License, or
(at your option) any later version.
This program 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 this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
"""

from abc import ABCMeta, abstractmethod

import cpl
Expand Down
19 changes: 19 additions & 0 deletions metisp/pymetis/src/pymetis/base/product.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,22 @@
"""
This file is part of the METIS Pipeline.
Copyright (C) 2024 European Southern Observatory
This program 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 2 of the License, or
(at your option) any later version.
This program 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 this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
"""

from abc import ABC, abstractmethod

import cpl
Expand Down
19 changes: 19 additions & 0 deletions metisp/pymetis/src/pymetis/base/recipe.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,22 @@
"""
This file is part of the METIS Pipeline.
Copyright (C) 2024 European Southern Observatory
This program 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 2 of the License, or
(at your option) any later version.
This program 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 this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
"""

from typing import Dict, Any

import cpl
Expand Down
19 changes: 19 additions & 0 deletions metisp/pymetis/src/pymetis/inputs/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,22 @@
"""
This file is part of the METIS Pipeline.
Copyright (C) 2024 European Southern Observatory
This program 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 2 of the License, or
(at your option) any later version.
This program 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 this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
"""

from .inputset import PipelineInputSet

from .base import PipelineInput, SinglePipelineInput, MultiplePipelineInput
Expand Down
19 changes: 19 additions & 0 deletions metisp/pymetis/src/pymetis/inputs/base.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,22 @@
"""
This file is part of the METIS Pipeline.
Copyright (C) 2024 European Southern Observatory
This program 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 2 of the License, or
(at your option) any later version.
This program 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 this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
"""

from abc import abstractmethod

import cpl
Expand Down
19 changes: 19 additions & 0 deletions metisp/pymetis/src/pymetis/inputs/common.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,22 @@
"""
This file is part of the METIS Pipeline.
Copyright (C) 2024 European Southern Observatory
This program 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 2 of the License, or
(at your option) any later version.
This program 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 this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
"""

import cpl
from cpl.core import Msg

Expand Down
19 changes: 19 additions & 0 deletions metisp/pymetis/src/pymetis/inputs/inputset.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,22 @@
"""
This file is part of the METIS Pipeline.
Copyright (C) 2024 European Southern Observatory
This program 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 2 of the License, or
(at your option) any later version.
This program 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 this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
"""

from abc import ABCMeta

import cpl
Expand Down
19 changes: 19 additions & 0 deletions metisp/pymetis/src/pymetis/inputs/mixins.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,22 @@
"""
This file is part of the METIS Pipeline.
Copyright (C) 2024 European Southern Observatory
This program 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 2 of the License, or
(at your option) any later version.
This program 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 this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
"""

import cpl.ui

from pymetis.inputs import PersistenceMapInput, PipelineInputSet
Expand Down
19 changes: 19 additions & 0 deletions metisp/pymetis/src/pymetis/mixins/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,22 @@
"""
This file is part of the METIS Pipeline.
Copyright (C) 2024 European Southern Observatory
This program 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 2 of the License, or
(at your option) any later version.
This program 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 this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
"""

# Basic reusable mixin classes
from .masterdark import MasterDarkInputMixin
from .masterflat import MasterFlatInputMixin
Expand Down
19 changes: 19 additions & 0 deletions metisp/pymetis/src/pymetis/mixins/badpixmap.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,22 @@
"""
This file is part of the METIS Pipeline.
Copyright (C) 2024 European Southern Observatory
This program 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 2 of the License, or
(at your option) any later version.
This program 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 this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
"""

import cpl

from pymetis.base.input import RecipeInput
Expand Down
19 changes: 19 additions & 0 deletions metisp/pymetis/src/pymetis/mixins/detectors.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,22 @@
"""
This file is part of the METIS Pipeline.
Copyright (C) 2024 European Southern Observatory
This program 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 2 of the License, or
(at your option) any later version.
This program 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 this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
"""

class Detector2rgMixin:
detector: str = '2RG'
band: str = 'LM'
Expand Down
19 changes: 19 additions & 0 deletions metisp/pymetis/src/pymetis/mixins/gainmap.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,22 @@
"""
This file is part of the METIS Pipeline.
Copyright (C) 2024 European Southern Observatory
This program 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 2 of the License, or
(at your option) any later version.
This program 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 this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
"""

import cpl

from pymetis.base.input import RecipeInput
Expand Down
19 changes: 19 additions & 0 deletions metisp/pymetis/src/pymetis/mixins/linearity.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,22 @@
"""
This file is part of the METIS Pipeline.
Copyright (C) 2024 European Southern Observatory
This program 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 2 of the License, or
(at your option) any later version.
This program 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 this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
"""

import cpl

from pymetis.base.input import RecipeInput
Expand Down
19 changes: 19 additions & 0 deletions metisp/pymetis/src/pymetis/mixins/masterdark.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,22 @@
"""
This file is part of the METIS Pipeline.
Copyright (C) 2024 European Southern Observatory
This program 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 2 of the License, or
(at your option) any later version.
This program 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 this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
"""

import cpl

from pymetis.base.input import RecipeInput
Expand Down
Loading

0 comments on commit 1878b7f

Please sign in to comment.