Skip to content

Commit 8211ff8

Browse files
committed
Fixed a couple small bugs in the swarm_it module, picked up when trying to run with models with no swarm_param instance. Ticked up the patch version number: 0.1.0->0.1.1
1 parent db509d3 commit 8211ff8

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
![Python version badge](https://img.shields.io/badge/python-3.6-blue.svg)
44
[![license](https://img.shields.io/github/license/LoLab-VU/swarm_it.svg)](LICENSE)
5-
![version](https://img.shields.io/badge/version-0.1.0-orange.svg)
5+
![version](https://img.shields.io/badge/version-0.1.1-orange.svg)
66
[![release](https://img.shields.io/github/release-pre/LoLab-VU/swarm_it.svg)](https://github.com/LoLab-VU/swarm_it/releases/tag/v0.1.0)
77

88
**swarm_it** is a python utility designed to abstract away some of the effort in setting up Particle Swarm Optimization (PSO)-based calibrations of biological models in the [PySB](http://pysb.org/) format using [simplePSO](https://github.com/LoLab-VU/ParticleSwarmOptimization).

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
from distutils.core import setup
22

33
setup(name='swarm_it',
4-
version='0.1.0',
4+
version='0.1.1',
55
description='Utility to help setup PSO runs for PySB models.',
66
author='Blake A. Wilson',
77
author_email='[email protected]',

swarm_it.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -251,11 +251,11 @@ def __init__(self, model, observable_data, timespan,
251251
if rule.rate_reverse:
252252
swarm_param(rule.rate_reverse)
253253
parm_mask = swarm_param.mask(model.parameters)
254-
self._sampled_parameters = [SampledParameter(parm.name, *swarm_param[parm.name]) for i,parm in enumerate(model.parameters) if parm_mask[i]]
254+
# self._sampled_parameters = [SampledParameter(parm.name, *swarm_param[parm.name]) for i,parm in enumerate(model.parameters) if parm_mask[i]]
255255
self._rate_mask = parm_mask
256256
self._starting_position = swarm_param.centers()
257257
self._lower = swarm_param.lower()
258-
self._upper = self.upper()
258+
self._upper = swarm_param.upper()
259259
self._param_values = np.array([param.value for param in model.parameters])
260260
return
261261

0 commit comments

Comments
 (0)