Skip to content

Commit

Permalink
Apache 2.0 license
Browse files Browse the repository at this point in the history
  • Loading branch information
sjpfenninger committed Jan 2, 2014
1 parent bcc44dc commit a865cdf
Show file tree
Hide file tree
Showing 19 changed files with 372 additions and 705 deletions.
877 changes: 203 additions & 674 deletions LICENSE

Large diffs are not rendered by default.

11 changes: 11 additions & 0 deletions calliope/constraints/base.py
@@ -1,3 +1,14 @@
"""
Copyright (C) 2013 Stefan Pfenninger.
Licensed under the Apache 2.0 License (see LICENSE file).
base.py
~~~~~~~
Basic model constraints.
"""

from __future__ import print_function
from __future__ import division

Expand Down
11 changes: 11 additions & 0 deletions calliope/constraints/ramping.py
@@ -1,3 +1,14 @@
"""
Copyright (C) 2013 Stefan Pfenninger.
Licensed under the Apache 2.0 License (see LICENSE file).
ramping.py
~~~~~~~~~~
Ramping constraints.
"""

from __future__ import print_function
from __future__ import division

Expand Down
11 changes: 11 additions & 0 deletions calliope/core.py
@@ -1,3 +1,14 @@
"""
Copyright (C) 2013 Stefan Pfenninger.
Licensed under the Apache 2.0 License (see LICENSE file).
core.py
~~~~~~~
Core model functionality via the Model class.
"""

from __future__ import print_function
from __future__ import division

Expand Down
9 changes: 8 additions & 1 deletion calliope/locations.py
@@ -1,5 +1,12 @@
"""
Functions to deal with locations and their configuration
Copyright (C) 2013 Stefan Pfenninger.
Licensed under the Apache 2.0 License (see LICENSE file).
locations.py
~~~~~~~~~~~~
Functions to deal with locations and their configuration.
"""

from __future__ import print_function
Expand Down
12 changes: 12 additions & 0 deletions calliope/parallel.py
@@ -1,3 +1,15 @@
"""
Copyright (C) 2013 Stefan Pfenninger.
Licensed under the Apache 2.0 License (see LICENSE file).
parallel.py
~~~~~~~~~~~
Defines the Parallelizer class which manages the creation of arbitrary
numbers of scripted runs, either locally or to be deployed to a cluster.
"""

from __future__ import print_function
from __future__ import division

Expand Down
11 changes: 11 additions & 0 deletions calliope/parallel_tools.py
@@ -1,3 +1,14 @@
"""
Copyright (C) 2013 Stefan Pfenninger.
Licensed under the Apache 2.0 License (see LICENSE file).
parallel_tools.py
~~~~~~~~~~~~~~~~~
Functions to process results from parallel runs created by parallel.py.
"""

from __future__ import print_function
from __future__ import division

Expand Down
12 changes: 12 additions & 0 deletions calliope/techs.py
@@ -1,3 +1,15 @@
"""
Copyright (C) 2013 Stefan Pfenninger.
Licensed under the Apache 2.0 License (see LICENSE file).
techs.py
~~~~~~~~
Basic Technology class and additional custom classes for technologies to
perform custom initialization tasks during model initialization.
"""

from __future__ import print_function
from __future__ import division

Expand Down
12 changes: 12 additions & 0 deletions calliope/time.py
@@ -1,3 +1,15 @@
"""
Copyright (C) 2013 Stefan Pfenninger.
Licensed under the Apache 2.0 License (see LICENSE file).
time.py
~~~~~~~
Provides the TimeSummarizer class which can dynamically adjust the time
step resolution of the data in a model instance.
"""

from __future__ import print_function
from __future__ import division

Expand Down
12 changes: 12 additions & 0 deletions calliope/time_masks.py
@@ -1,3 +1,15 @@
"""
Copyright (C) 2013 Stefan Pfenninger.
Licensed under the Apache 2.0 License (see LICENSE file).
time_masks.py
~~~~~~~~~~~~~
Defines time masks to be used with TimeSummarizer in time.py.
"""


from __future__ import print_function
from __future__ import division

Expand Down
9 changes: 8 additions & 1 deletion calliope/transmission.py
@@ -1,5 +1,12 @@
"""
Functions to deal with transmission between locations
Copyright (C) 2013 Stefan Pfenninger.
Licensed under the Apache 2.0 License (see LICENSE file).
transmission.py
~~~~~~~~~~~~~~~
Functions to deal with transmission between locations.
"""

from __future__ import print_function
Expand Down
12 changes: 12 additions & 0 deletions calliope/utils.py
@@ -1,3 +1,15 @@
"""
Copyright (C) 2013 Stefan Pfenninger.
Licensed under the Apache 2.0 License (see LICENSE file).
utils.py
~~~~~~~~
Various utility functions, particularly the AttrDict class (a subclass
of regular dict) used for managing model configuration.
"""

from __future__ import print_function
from __future__ import division

Expand Down
1 change: 1 addition & 0 deletions changelog.rst
Expand Up @@ -11,6 +11,7 @@ Release History
* Ability to arbitrarily nest model configuration files with ``import`` statements
* Cleared up terminology (nodes vs locations)
* Improved documentation
* Apache 2.0 licensed
* Other improvements

0.1.0 (2013-12-10)
Expand Down
2 changes: 1 addition & 1 deletion doc/_templates/sidebar_intro.html
Expand Up @@ -6,5 +6,5 @@

<!-- <p style="text-align:justify; font-size: 0.9em;"> -->
<p>
Calliope is a framework to develop energy systems models using a modern Python-based toolchain.
Calliope is a framework to develop energy systems models using a modern and open source Python-based toolchain.
</p>
2 changes: 1 addition & 1 deletion doc/_themes/flask_calliope/layout.html
Expand Up @@ -17,7 +17,7 @@
{%- block footer %}
<div class="footer">
&copy; Copyright {{ copyright }}.
Docs created using <a href="http://sphinx-doc.org/">Sphinx</a>.
<!-- Docs created using <a href="http://sphinx-doc.org/">Sphinx</a>. -->
</div>
{% if pagename == 'index' %}
</div>
Expand Down
16 changes: 8 additions & 8 deletions doc/api/api.rst
Expand Up @@ -18,23 +18,23 @@ Constraints
.. automodule:: calliope.constraints.ramping
:members:

Utilities
=========
AttrDict
========

.. automodule:: calliope.utils
.. autoclass:: calliope.utils.AttrDict
:members:

Parallelization
===============
Parallelizer and parallel_tools
===============================

.. autoclass:: calliope.Parallelizer
:members:

.. automodule:: calliope.parallel_tools
:members:
:members: read_dir, reshape_results

Time
===============
TimeSummarizer
==============

.. autoclass:: calliope.TimeSummarizer
:members:
15 changes: 14 additions & 1 deletion doc/conf.py
Expand Up @@ -44,7 +44,7 @@

# General information about the project.
project = u'Calliope'
copyright = u'2013, Stefan Pfenninger'
copyright = u'2013, Stefan Pfenninger (Apache 2.0 licensed)'

# The version info for the project you're documenting, acts as replacement for
# |version| and |release|, also used in various other places throughout the
Expand Down Expand Up @@ -248,3 +248,16 @@

# How to display URL addresses: 'footnote', 'no', or 'inline'.
#texinfo_show_urls = 'footnote'


#
# Remove module docstrings from autodoc
#

def remove_module_docstring(app, what, name, obj, options, lines):
if what == "module":
del lines[:]


def setup(app):
app.connect("autodoc-process-docstring", remove_module_docstring)
26 changes: 12 additions & 14 deletions doc/index.rst
Expand Up @@ -6,7 +6,7 @@ Calliope: a multi-scale energy systems (MUSES) modeling framework

v\ |version| (:doc:`Release history <history>`)

Calliope is a framework to develop energy systems models using a modern Python-based toolchain.
Calliope is a framework to develop energy systems models using a modern and open source Python-based toolchain.

Main features:

Expand All @@ -17,7 +17,7 @@ Main features:
* Able to run on computing clusters
* Easily extensible
* Uses a state-of-the-art Python toolchain based on `IPython <http://ipython.org/>`_, `Pandas <http://pandas.pydata.org/>`_ and `Pyomo <https://software.sandia.gov/trac/coopr/wiki/Pyomo>`_
* `Freely available <https://github.com/sjpfenninger/calliope>`_ under the GNU GPLv3 license
* `Freely available <https://github.com/sjpfenninger/calliope>`_ under the Apache 2.0 license

-----------
Quick start
Expand Down Expand Up @@ -76,18 +76,16 @@ Release history
License
-------

Copyright © 2013 Stefan Pfenninger
Copyright 2013 Stefan Pfenninger

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 3 of the License, or (at your option) any later version.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

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, see [http://www.gnu.org/licenses/].

.. Indices and tables
.. ==================
..
.. * :ref:`genindex`
.. * :ref:`modindex`
.. * :ref:`search`
http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
16 changes: 12 additions & 4 deletions doc/model/introduction.rst
Expand Up @@ -9,14 +9,22 @@ Acknowledgments

Development is funded by the `Grantham Institute for Climate Change <http://www3.imperial.ac.uk/climatechange/>`_ at Imperial College London and the European Institute of Technology's `Climate-KIC program <http://www.climate-kic.org>`_.

.. _license:

-------
License
-------

Copyright © 2013 Stefan Pfenninger
Copyright 2013 Stefan Pfenninger

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 3 of the License, or (at your option) any later version.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

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.
http://www.apache.org/licenses/LICENSE-2.0

You should have received a copy of the GNU General Public License along with this program. If not, see [http://www.gnu.org/licenses/].
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

0 comments on commit a865cdf

Please sign in to comment.