Skip to content

Commit 7ea7e1e

Browse files
Breaking test
1 parent af98aa7 commit 7ea7e1e

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

tests/test_plugins/smatrix/test_component_modeler.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -408,7 +408,8 @@ def test_to_from_file_batch(tmp_path, monkeypatch):
408408
modeler.to_file(fname)
409409
modeler2 = modeler.from_file(fname)
410410

411-
assert modeler2.batch_cached == modeler2.batch == batch
411+
# BREAK this test because it introduces mutability which shouldn't exist
412+
# assert modeler2.batch_cached == modeler2.batch == batch
412413

413414

414415
def test_non_default_path_dir(monkeypatch):

tidy3d/plugins/smatrix/component_modelers/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ class AbstractComponentModeler(ABC, Tidy3dBaseModel):
108108
batch_cached: typing.Any = pd.Field(
109109
None,
110110
title="Batch (Cached)",
111-
description="Optional field to specify ``batch``. Only used as a workaround internally "
111+
description="DEPRECATED: Optional field to specify ``batch``. Only used as a workaround internally "
112112
"so that ``batch`` is written when ``.to_file()`` and then the proper batch is loaded "
113113
"from ``.from_file()``. We recommend leaving unset as setting this field along with "
114114
"fields that were not used to create the task will cause errors.",

0 commit comments

Comments
 (0)