Skip to content

Commit 20da931

Browse files
authored
constraint feature bugfix (2.3.63 release) (#599)
* fix bug where creating a custom constraint for parameters within features was not correctly identifying the constrained parameter and was raising an error when attempting to set the value of the constraining parameter.
1 parent a525907 commit 20da931

File tree

4 files changed

+10
-6
lines changed

4 files changed

+10
-6
lines changed

README.md

+4
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,10 @@ To understand how to use PHOEBE, please consult the [tutorials, scripts and manu
8484
CHANGELOG
8585
----------
8686

87+
### 2.3.63 - constraint feature bugfix
88+
89+
* fix bug where creating a custom constraint for parameters within features was not correctly identifying the constrained parameter and was raising an error when attempting to set the value of the constraining parameter.
90+
8791
### 2.3.62 - attach_job ferr bugfix
8892

8993
* fix bug where error file was not properly loaded when retrieving error from external job

phoebe/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
1818
"""
1919

20-
__version__ = '2.3.62'
20+
__version__ = '2.3.63'
2121

2222
import os as _os
2323
import sys as _sys

phoebe/parameters/parameters.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -11331,7 +11331,7 @@ def _update_bookkeeping(self):
1133111331
self._remove_bookkeeping()
1133211332
# logger.debug("ConstraintParameter {} _update_bookkeeping".format(self.twig))
1133311333
for param in self.vars.to_list():
11334-
if param.qualifier == self.qualifier and param.component == self.component and param.dataset == self.dataset:
11334+
if param.qualifier == self.qualifier and param.component == self.component and param.dataset == self.dataset and param.feature == self.feature:
1133511335
# then this is the currently constrained parameter
1133611336
param._is_constraint = self.uniqueid
1133711337
if self.uniqueid in param._in_constraints:
@@ -11342,7 +11342,7 @@ def _update_bookkeeping(self):
1134211342
param._in_constraints.append(self.uniqueid)
1134311343

1134411344
for param in self.addl_vars.to_list():
11345-
if param.qualifier == self.qualifier and param.component == self.component and param.dataset == self.dataset:
11345+
if param.qualifier == self.qualifier and param.component == self.component and param.dataset == self.dataset and param.feature == self.feature:
1134611346
# then this is the currently constrained parameter
1134711347
param._is_constraint = self.uniqueid
1134811348

setup.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -405,8 +405,8 @@ def _env_variable_bool(key, default):
405405
long_description = "\n".join(long_description_s[long_description_s.index("INTRODUCTION"):])
406406

407407
setup (name = 'phoebe',
408-
version = '2.3.62',
409-
description = 'PHOEBE 2.3.62',
408+
version = '2.3.63',
409+
description = 'PHOEBE 2.3.63',
410410
long_description=long_description,
411411
author = 'PHOEBE development team',
412412
author_email = 'phoebe-devel@lists.sourceforge.net',
@@ -426,7 +426,7 @@ def _env_variable_bool(key, default):
426426
'Programming Language :: Python :: 3 :: Only',
427427
],
428428
python_requires='>=3.6, <4',
429-
download_url = 'https://github.com/phoebe-project/phoebe2/tarball/2.3.62',
429+
download_url = 'https://github.com/phoebe-project/phoebe2/tarball/2.3.63',
430430
packages = ['phoebe', 'phoebe.parameters', 'phoebe.parameters.solver', 'phoebe.parameters.figure', 'phoebe.frontend', 'phoebe.constraints', 'phoebe.dynamics', 'phoebe.distortions', 'phoebe.algorithms', 'phoebe.atmospheres', 'phoebe.backend', 'phoebe.solverbackends', 'phoebe.solverbackends.ebai', 'phoebe.utils', 'phoebe.helpers', 'phoebe.pool', 'phoebe.dependencies', 'phoebe.dependencies.autofig', 'phoebe.dependencies.nparray', 'phoebe.dependencies.distl', 'phoebe.dependencies.unitsiau2015'],
431431
install_requires=['numpy>=1.12','scipy>=1.2','astropy>=1.0', 'corner', 'pytest', 'requests', 'python-socketio[client]']+['flask', 'flask-cors', 'flask-socketio==4.3.*', 'gevent-websocket'],
432432
package_data={'phoebe.atmospheres':['tables/wd/*', 'tables/passbands/*'],

0 commit comments

Comments
 (0)