Skip to content

Commit

Permalink
Merge pull request #46 from sot/add-license
Browse files Browse the repository at this point in the history
Add LICENSE and license comments
  • Loading branch information
taldcroft authored Sep 21, 2017
2 parents f0222d5 + 7a5245d commit b06fd65
Show file tree
Hide file tree
Showing 34 changed files with 62 additions and 0 deletions.
29 changes: 29 additions & 0 deletions LICENSE.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
BSD 3-Clause License

Copyright (c) 2017, Smithsonian Astrophysical Observatory
All rights reserved.

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 copyright holder 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 HOLDER 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.
1 change: 1 addition & 0 deletions alt_core/core_python.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# Licensed under a 3-clause BSD style license - see LICENSE.rst
import numpy as np

def calc_model(indexes, dt, n_preds, mvals, parvals, mults, heats, heatsinks):
Expand Down
1 change: 1 addition & 0 deletions doc/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
#
# All configuration values have a default; values that are commented out
# serve to show the default.
# Licensed under a 3-clause BSD style license - see LICENSE.rst

import sys
import os
Expand Down
1 change: 1 addition & 0 deletions examples/doc/example1.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# Licensed under a 3-clause BSD style license - see LICENSE.rst
"""
Example with a single node (ACA CCD temperature) with solar heating
(2 bins).
Expand Down
1 change: 1 addition & 0 deletions examples/doc/example2.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# Licensed under a 3-clause BSD style license - see LICENSE.rst
"""
Example with a single node (ACA CCD temperature) with solar heating
(2 bins) and a heat sink.
Expand Down
1 change: 1 addition & 0 deletions examples/doc/example3.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# Licensed under a 3-clause BSD style license - see LICENSE.rst
"""
Example with a single node (ACA CCD temperature) with solar heating
(2 bins) and a heat sink.
Expand Down
1 change: 1 addition & 0 deletions examples/doc/example3_fit.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# Licensed under a 3-clause BSD style license - see LICENSE.rst
import sys
import xija

Expand Down
1 change: 1 addition & 0 deletions examples/doc/example4.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# Licensed under a 3-clause BSD style license - see LICENSE.rst
import sys
import xija

Expand Down
1 change: 1 addition & 0 deletions examples/dpa/plot_dpa_resid.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# Licensed under a 3-clause BSD style license - see LICENSE.rst
import xija
import numpy as np
import matplotlib.pyplot as plt
Expand Down
1 change: 1 addition & 0 deletions fit.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/usr/bin/env python
# Licensed under a 3-clause BSD style license - see LICENSE.rst

import os
import sys
Expand Down
1 change: 1 addition & 0 deletions gui_fit.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/usr/bin/env python
# Licensed under a 3-clause BSD style license - see LICENSE.rst
"""
Run the gui_fit tool
"""
Expand Down
1 change: 1 addition & 0 deletions models/acisfp/calc_model.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# Licensed under a 3-clause BSD style license - see LICENSE.rst
"""Sample code for calculating the ACIS FP Xija model.
This shows necessary inputs and runs without using the eng archive.
Expand Down
1 change: 1 addition & 0 deletions models/minusz/make_minusz.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# Licensed under a 3-clause BSD style license - see LICENSE.rst
"""
Replicate (mostly) the minusz TEPHIN node model. (dPs set to zero though).
Expand Down
1 change: 1 addition & 0 deletions models/psmc/make_psmc_from_twodof.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# Licensed under a 3-clause BSD style license - see LICENSE.rst
import xija
import numpy as np
import asciitable
Expand Down
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# Licensed under a 3-clause BSD style license - see LICENSE.rst
from setuptools import setup, Extension
import os
from xija import __version__
Expand Down
1 change: 1 addition & 0 deletions tests_no_pytest/test_minimal_onedof.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# Build the core.so module and put into the source directory.
# python setup.py build_ext --inplace
# Licensed under a 3-clause BSD style license - see LICENSE.rst

import xija

Expand Down
1 change: 1 addition & 0 deletions tests_no_pytest/test_minimal_twodof.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# Licensed under a 3-clause BSD style license - see LICENSE.rst
import numpy as np
import xija

Expand Down
1 change: 1 addition & 0 deletions tests_no_pytest/test_minusz.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# Licensed under a 3-clause BSD style license - see LICENSE.rst
"""
Replicate (mostly) the minusz TEPHIN node model. (dPs set to zero though).
"""
Expand Down
1 change: 1 addition & 0 deletions tests_no_pytest/test_minusz_proto.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# Licensed under a 3-clause BSD style license - see LICENSE.rst
"""
Replicate (mostly) the minusz TEPHIN node model. (dPs set to zero though).
"""
Expand Down
1 change: 1 addition & 0 deletions tests_no_pytest/test_write.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# Licensed under a 3-clause BSD style license - see LICENSE.rst
import os
import json
import numpy as np
Expand Down
1 change: 1 addition & 0 deletions worker.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/usr/bin/env python
# Licensed under a 3-clause BSD style license - see LICENSE.rst
"""
Worker
"""
Expand Down
1 change: 1 addition & 0 deletions xija/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# Licensed under a 3-clause BSD style license - see LICENSE.rst
from .model import *
from .component import *
from .files import files
Expand Down
1 change: 1 addition & 0 deletions xija/clogging.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# Licensed under a 3-clause BSD style license - see LICENSE.rst
import logging
from logging import DEBUG, INFO, WARNING, CRITICAL, ERROR
import sys
Expand Down
1 change: 1 addition & 0 deletions xija/component/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# Licensed under a 3-clause BSD style license - see LICENSE.rst
from .base import *
from .mask import *
from .heat import *
Expand Down
1 change: 1 addition & 0 deletions xija/component/base.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# Licensed under a 3-clause BSD style license - see LICENSE.rst
import numpy as np
import six

Expand Down
1 change: 1 addition & 0 deletions xija/component/experimental.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# Licensed under a 3-clause BSD style license - see LICENSE.rst
import numpy as np

try:
Expand Down
1 change: 1 addition & 0 deletions xija/component/heat.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# Licensed under a 3-clause BSD style license - see LICENSE.rst
from __future__ import print_function

import re
Expand Down
1 change: 1 addition & 0 deletions xija/component/mask.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# Licensed under a 3-clause BSD style license - see LICENSE.rst
import operator

import numpy as np
Expand Down
1 change: 1 addition & 0 deletions xija/convert.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# Licensed under a 3-clause BSD style license - see LICENSE.rst
from __future__ import print_function

import sys
Expand Down
1 change: 1 addition & 0 deletions xija/files.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# Licensed under a 3-clause BSD style license - see LICENSE.rst
files = dict(model_spec = '{{src.model}}/{{src.model}}',
out_dir = '{{src.model}}/{{src.outdir}}',
out_values = '{{src.model}}/{{src.outdir}}/values',
Expand Down
1 change: 1 addition & 0 deletions xija/gui_fit.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/usr/bin/env python
# Licensed under a 3-clause BSD style license - see LICENSE.rst

from __future__ import print_function

Expand Down
1 change: 1 addition & 0 deletions xija/model.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# Licensed under a 3-clause BSD style license - see LICENSE.rst
"""
Xija - framework to model complex time-series data using a network of
coupled nodes with pluggable model components that define the node
Expand Down
1 change: 1 addition & 0 deletions xija/tests/test_models.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# Licensed under a 3-clause BSD style license - see LICENSE.rst
from __future__ import print_function

import os
Expand Down
1 change: 1 addition & 0 deletions xija/tmal.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# Licensed under a 3-clause BSD style license - see LICENSE.rst
OPCODES = {'coupling': 0,
'heatsink': 1,
'precomputed_heat': 2,
Expand Down

0 comments on commit b06fd65

Please sign in to comment.