Skip to content

Commit

Permalink
Merge pull request #380 from wjjmjh/304_fast_slow_dist_full_setting
Browse files Browse the repository at this point in the history
repr() of app.dist.fast_slow_dist showing full setting, fixes #304
  • Loading branch information
GavinHuttley committed Nov 14, 2019
2 parents 3947582 + 3f49ddf commit 9567522
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/cogent3/app/dist.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ def __init__(self, distance=None, moltype=None, fast_calc=None, slow_calc=None):
output_types=(PAIRWISE_DISTANCE_TYPE, SERIALISABLE_TYPE),
data_types=("ArrayAlignment", "Alignment"),
)
self._formatted_params()
self._moltype = moltype if moltype is None else get_moltype(moltype)
self._sm = None

Expand Down
2 changes: 1 addition & 1 deletion tests/test_app/test_tree.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ def test_composable_apps(self):
proc = fast_slow_dist + quick
self.assertEqual(
str(proc),
"fast_slow_dist(type='distance') + quick_tree(type='tree', drop_invalid=False)",
"fast_slow_dist(type='distance', distance=None, moltype='dna', fast_calc='hamming', slow_calc=None) + quick_tree(type='tree', drop_invalid=False)",
)
self.assertIsInstance(proc, tree_app.quick_tree)
self.assertEqual(proc._type, "tree")
Expand Down

0 comments on commit 9567522

Please sign in to comment.