Skip to content

Commit 6ead7ab

Browse files
committed
fix (some) failing tests
1 parent ec33de6 commit 6ead7ab

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

phoebe/backend/universe.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1246,10 +1246,11 @@ def from_bundle(cls, b, component, compute=None,
12461246

12471247
features = []
12481248
for feature in b.filter(qualifier='enabled', compute=compute, value=True, **_skip_filter_checks).features:
1249-
if feature_ps.component != component:
1250-
continue
1249+
feature_ps = b.get_feature(feature=feature, **_skip_filter_checks)
12511250
if feature_ps.get_value(qualifier='feature_type', **_skip_filter_checks) != 'component':
12521251
continue
1252+
if feature_ps.component != component:
1253+
continue
12531254
feature_obj = b.get_feature_code(feature=feature)
12541255
features.append(feature_obj)
12551256

phoebe/parameters/parameters.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,7 @@
300300
'rho', 'sigma', 'tau', 'period', 'Q0', 'dQ', 'f', 'eps',
301301
'sigma_0', 'constant_value_bounds', 'length_scale_bounds',
302302
'noise_level_bounds', 'periodicity_bounds', 'alpha_bounds', 'nu_bounds',
303-
'sigma_0_bounds', 'alg_operation',
303+
'sigma_0_bounds', 'alg_operation', 'feature_type', 'feature_code'
304304
]
305305

306306
# from figure:

0 commit comments

Comments
 (0)