Skip to content

Commit

Permalink
v0.5.2 as released on pypi (#1037)
Browse files Browse the repository at this point in the history
* update MANIFEST
* year, version, release notes
  • Loading branch information
bqpd authored Jan 16, 2017
1 parent 5321eda commit ad70673
Show file tree
Hide file tree
Showing 9 changed files with 38 additions and 11 deletions.
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The MIT License (MIT)

Copyright (c) 2016 Edward Burnell and Warren Hoburg
Copyright (c) 2017 Edward Burnell and Warren Hoburg

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
2 changes: 2 additions & 0 deletions MANIFEST
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ gpkit/interactive/__init__.py
gpkit/interactive/chartjs.py
gpkit/interactive/linking_diagram.py
gpkit/interactive/plotting.py
gpkit/interactive/plot_sweep.py
gpkit/interactive/ractor.py
gpkit/interactive/sensitivity_map.py
gpkit/interactive/widgets.py
Expand Down Expand Up @@ -58,6 +59,7 @@ gpkit/tests/t_tools.py
gpkit/tests/t_vars.py
gpkit/tests/test_repo.py
gpkit/tools/__init__.py
gpkit/tools/autosweep.py
gpkit/tools/fmincon.py
gpkit/tools/spdata.py
gpkit/tools/tools.py
Expand Down
4 changes: 2 additions & 2 deletions docs/source/citinggpkit.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ If you use GPkit, please cite it with the following bibtex::
author={Edward Burnell and Warren Hoburg},
title={GPkit software for geometric programming},
howpublished={\url{https://github.com/hoburg/gpkit}},
year={2016},
note={Version 0.5.1}
year={2017},
note={Version 0.5.2}
}
4 changes: 2 additions & 2 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@

# General information about the project.
project = u'gpkit'
copyright = u'2016 Edward Burnell and Warren Hoburg'
copyright = u'2017 Edward Burnell and Warren Hoburg'

# 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 All @@ -57,7 +57,7 @@
# The short X.Y version.
version = '0.5'
# The full version, including alpha/beta/rc tags.
release = '0.5.1'
release = '0.5.2'

# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
Expand Down
2 changes: 1 addition & 1 deletion docs/source/examples/external_sp2.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
"Can be found in gpkit/docs/source/examples/external_sp.py"
"Can be found in gpkit/docs/source/examples/external_sp2.py"
import numpy as np
from gpkit import Variable, Model

Expand Down
24 changes: 24 additions & 0 deletions docs/source/releasenotes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,30 @@ Release Notes

This page lists the changes made in each point version of gpkit.

Version 0.5.2
=============
* Added new ``sweep`` and ``autosweep`` methods to Model
* Added ``plot`` routines to the results of those routines to make it easy to plot a 1D sweep.
* Added new ``summary`` method to solution_array.
* It and table accept iterables of vars, will only print vars in that iterable (or, by default, all vars)
* Cleaned up and documented the ``interactive`` submodule
* removed contour and sensitivity plots
* added a 1D-sweep plotting function
* added that plotting function as an option within the control panel interface
* Overhauled and documented three types of variables whose value is determined by functions:
* calculated constants
* post-solve calculated variables
* between-GP-solves calculated variables (for Sequential Geometric Programs)
* Fix ``Bounded`` and implement ``debug()`` for SPs
* Apply ``subinplace`` to substitutions dictionary as well
* Require GP substitutions to be Numbers only
* Extend Bounded to one-sided bounds
* Print model's numbers by default, unless ``"modelnums" in exclude``
* Implement lazy keymapping, allowing GP/SP results to be KeyDicts
* Handle Signomial Inequalities that become Posynomial Inequalities after substitution
* Various documentation updates
* Various bug fixes

Version 0.5.1
=============
* O(N) sums and monomial products
Expand Down
2 changes: 1 addition & 1 deletion gpkit/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
from os.path import dirname as os_path_dirname
SETTINGS_PATH = os_sep.join([os_path_dirname(__file__), "env", "settings"])

__version__ = "0.5.1"
__version__ = "0.5.2"
UNIT_REGISTRY = None
SIGNOMIALS_ENABLED = False
GPBLU = "#59ade4"
Expand Down
5 changes: 3 additions & 2 deletions gpkit/constraints/signomial_program.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@ def __init__(self, cost, constraints, substitutions=None, verbosity=1):
CostedConstraintSet.__init__(self, cost, constraints, substitutions)
try:
self.__add_externalfns_maybe()
if self.externalfn_vars:
raise InvalidGPConstraint
if self.externalfn_vars: # not a GP! Skip to the `except`
raise InvalidGPConstraint("some variables have externalfns")
_ = self.as_posyslt1(substitutions) # should raise an error
# TODO: is there a faster way to check?
except InvalidGPConstraint:
Expand Down Expand Up @@ -164,6 +164,7 @@ def gp(self, x0=None, verbosity=1):
return gp

def __add_externalfns_maybe(self):
"If this hasn't already been done, look for vars with externalfns"
if not hasattr(self, "externalfn_vars"):
self.externalfn_vars = frozenset(Variable(newvariable=False,
**v.descr)
Expand Down
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@

LICENSE = """The MIT License (MIT)
Copyright (c) Edward Burnell and Warren Hoburg
Copyright (c) 2017 Edward Burnell and Warren Hoburg
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down Expand Up @@ -53,7 +53,7 @@
author_email="[email protected]",
url="https://www.github.com/hoburg/gpkit",
install_requires=["numpy >= 1.8.1", "pint", "scipy"],
version="0.5.1.1",
version="0.5.2.0",
packages=["gpkit", "gpkit._mosek", "gpkit.tests", "gpkit.interactive",
"gpkit.nomials", "gpkit.constraints", "gpkit.tools"],
package_data={"gpkit": ["pint/*", "env/*"],
Expand Down

0 comments on commit ad70673

Please sign in to comment.