Skip to content

Commit 7a5245d

Browse files
committed
Add LICENSE and license comments
1 parent f0222d5 commit 7a5245d

34 files changed

+62
-0
lines changed

LICENSE.rst

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
BSD 3-Clause License
2+
3+
Copyright (c) 2017, Smithsonian Astrophysical Observatory
4+
All rights reserved.
5+
6+
Redistribution and use in source and binary forms, with or without
7+
modification, are permitted provided that the following conditions are met:
8+
9+
* Redistributions of source code must retain the above copyright notice, this
10+
list of conditions and the following disclaimer.
11+
12+
* Redistributions in binary form must reproduce the above copyright notice,
13+
this list of conditions and the following disclaimer in the documentation
14+
and/or other materials provided with the distribution.
15+
16+
* Neither the name of the copyright holder nor the names of its
17+
contributors may be used to endorse or promote products derived from
18+
this software without specific prior written permission.
19+
20+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
21+
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
22+
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
23+
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
24+
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
25+
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
26+
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
27+
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
28+
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
29+
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

alt_core/core_python.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# Licensed under a 3-clause BSD style license - see LICENSE.rst
12
import numpy as np
23

34
def calc_model(indexes, dt, n_preds, mvals, parvals, mults, heats, heatsinks):

doc/conf.py

+1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
#
1212
# All configuration values have a default; values that are commented out
1313
# serve to show the default.
14+
# Licensed under a 3-clause BSD style license - see LICENSE.rst
1415

1516
import sys
1617
import os

examples/doc/example1.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# Licensed under a 3-clause BSD style license - see LICENSE.rst
12
"""
23
Example with a single node (ACA CCD temperature) with solar heating
34
(2 bins).

examples/doc/example2.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# Licensed under a 3-clause BSD style license - see LICENSE.rst
12
"""
23
Example with a single node (ACA CCD temperature) with solar heating
34
(2 bins) and a heat sink.

examples/doc/example3.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# Licensed under a 3-clause BSD style license - see LICENSE.rst
12
"""
23
Example with a single node (ACA CCD temperature) with solar heating
34
(2 bins) and a heat sink.

examples/doc/example3_fit.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# Licensed under a 3-clause BSD style license - see LICENSE.rst
12
import sys
23
import xija
34

examples/doc/example4.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# Licensed under a 3-clause BSD style license - see LICENSE.rst
12
import sys
23
import xija
34

examples/dpa/plot_dpa_resid.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# Licensed under a 3-clause BSD style license - see LICENSE.rst
12
import xija
23
import numpy as np
34
import matplotlib.pyplot as plt

fit.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#!/usr/bin/env python
2+
# Licensed under a 3-clause BSD style license - see LICENSE.rst
23

34
import os
45
import sys

gui_fit.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#!/usr/bin/env python
2+
# Licensed under a 3-clause BSD style license - see LICENSE.rst
23
"""
34
Run the gui_fit tool
45
"""

models/acisfp/calc_model.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# Licensed under a 3-clause BSD style license - see LICENSE.rst
12
"""Sample code for calculating the ACIS FP Xija model.
23
34
This shows necessary inputs and runs without using the eng archive.

models/minusz/make_minusz.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# Licensed under a 3-clause BSD style license - see LICENSE.rst
12
"""
23
Replicate (mostly) the minusz TEPHIN node model. (dPs set to zero though).
34

models/psmc/make_psmc_from_twodof.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# Licensed under a 3-clause BSD style license - see LICENSE.rst
12
import xija
23
import numpy as np
34
import asciitable

setup.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# Licensed under a 3-clause BSD style license - see LICENSE.rst
12
from setuptools import setup, Extension
23
import os
34
from xija import __version__

tests_no_pytest/test_minimal_onedof.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# Build the core.so module and put into the source directory.
22
# python setup.py build_ext --inplace
3+
# Licensed under a 3-clause BSD style license - see LICENSE.rst
34

45
import xija
56

tests_no_pytest/test_minimal_twodof.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# Licensed under a 3-clause BSD style license - see LICENSE.rst
12
import numpy as np
23
import xija
34

tests_no_pytest/test_minusz.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# Licensed under a 3-clause BSD style license - see LICENSE.rst
12
"""
23
Replicate (mostly) the minusz TEPHIN node model. (dPs set to zero though).
34
"""

tests_no_pytest/test_minusz_proto.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# Licensed under a 3-clause BSD style license - see LICENSE.rst
12
"""
23
Replicate (mostly) the minusz TEPHIN node model. (dPs set to zero though).
34
"""

tests_no_pytest/test_write.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# Licensed under a 3-clause BSD style license - see LICENSE.rst
12
import os
23
import json
34
import numpy as np

worker.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#!/usr/bin/env python
2+
# Licensed under a 3-clause BSD style license - see LICENSE.rst
23
"""
34
Worker
45
"""

xija/__init__.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# Licensed under a 3-clause BSD style license - see LICENSE.rst
12
from .model import *
23
from .component import *
34
from .files import files

xija/clogging.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# Licensed under a 3-clause BSD style license - see LICENSE.rst
12
import logging
23
from logging import DEBUG, INFO, WARNING, CRITICAL, ERROR
34
import sys

xija/component/__init__.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# Licensed under a 3-clause BSD style license - see LICENSE.rst
12
from .base import *
23
from .mask import *
34
from .heat import *

xija/component/base.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# Licensed under a 3-clause BSD style license - see LICENSE.rst
12
import numpy as np
23
import six
34

xija/component/experimental.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# Licensed under a 3-clause BSD style license - see LICENSE.rst
12
import numpy as np
23

34
try:

xija/component/heat.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# Licensed under a 3-clause BSD style license - see LICENSE.rst
12
from __future__ import print_function
23

34
import re

xija/component/mask.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# Licensed under a 3-clause BSD style license - see LICENSE.rst
12
import operator
23

34
import numpy as np

xija/convert.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# Licensed under a 3-clause BSD style license - see LICENSE.rst
12
from __future__ import print_function
23

34
import sys

xija/files.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# Licensed under a 3-clause BSD style license - see LICENSE.rst
12
files = dict(model_spec = '{{src.model}}/{{src.model}}',
23
out_dir = '{{src.model}}/{{src.outdir}}',
34
out_values = '{{src.model}}/{{src.outdir}}/values',

xija/gui_fit.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#!/usr/bin/env python
2+
# Licensed under a 3-clause BSD style license - see LICENSE.rst
23

34
from __future__ import print_function
45

xija/model.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# Licensed under a 3-clause BSD style license - see LICENSE.rst
12
"""
23
Xija - framework to model complex time-series data using a network of
34
coupled nodes with pluggable model components that define the node

xija/tests/test_models.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# Licensed under a 3-clause BSD style license - see LICENSE.rst
12
from __future__ import print_function
23

34
import os

xija/tmal.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# Licensed under a 3-clause BSD style license - see LICENSE.rst
12
OPCODES = {'coupling': 0,
23
'heatsink': 1,
34
'precomputed_heat': 2,

0 commit comments

Comments
 (0)