Skip to content

Commit 7c5e38b

Browse files
Jammy2211Jammy2211
authored andcommitted
fix TruncatedGaussian ids
1 parent c19ca06 commit 7c5e38b

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

test_autofit/aggregator/test_reference.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,11 @@ def test_with():
2626

2727
aggregator = Aggregator.from_directory(
2828
Path(__file__).parent,
29-
reference={"": get_class_path(af.Exponential)},
29+
reference={"": get_class_path(af.ex.Exponential)},
3030
)
3131
output_list = list(aggregator)
3232
model_list = [output.model for output in output_list]
33-
assert any([getattr(model, "cls", False) is af.Exponential for model in model_list])
33+
assert any([getattr(model, "cls", False) is af.ex.Exponential for model in model_list])
3434

3535
@pytest.fixture(name="database_path")
3636
def database_path(output_directory):
@@ -49,7 +49,7 @@ def database_aggregator(
4949
)
5050
aggregator.add_directory(
5151
directory,
52-
reference={"": get_class_path(af.Exponential)},
52+
reference={"": get_class_path(af.ex.Exponential)},
5353
completed_only=True,
5454
)
5555

@@ -59,7 +59,7 @@ def database_aggregator(
5959
def test_database(database_aggregator):
6060
fit = list(database_aggregator)[0]
6161
model = fit.model
62-
assert model.cls is af.Exponential
62+
assert model.cls is af.ex.Exponential
6363

6464

6565
@pytest.fixture(name="info")

test_autofit/test_visualise.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ def graph_path(output_directory):
6262

6363
def test_complex_object(graph_path):
6464
second = af.Model(af.ex.Gaussian)
65-
exp = af.Model(af.Exponential)
65+
exp = af.Model(af.ex.Exponential)
6666
third = af.Model(af.ex.Gaussian)
6767

6868
collection = af.Collection(

0 commit comments

Comments
 (0)