Skip to content

Commit ec06455

Browse files
Starting to remove incompatibiltiies
1 parent c655ab5 commit ec06455

File tree

1 file changed

+1
-52
lines changed
  • tidy3d/plugins/smatrix/component_modelers

1 file changed

+1
-52
lines changed

tidy3d/plugins/smatrix/component_modelers/base.py

Lines changed: 1 addition & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -70,58 +70,7 @@ class AbstractComponentModeler(ABC, Tidy3dBaseModel):
7070
"near zero frequency. Setting this to ``False`` results in an unmodified Gaussian "
7171
"pulse spectrum which can have a nonzero DC component.",
7272
)
73-
74-
folder_name: str = pd.Field(
75-
"default",
76-
title="Folder Name",
77-
description="Name of the folder for the tasks on web.",
78-
)
79-
80-
verbose: bool = pd.Field(
81-
False,
82-
title="Verbosity",
83-
description="Whether the :class:`.AbstractComponentModeler` should print status and progressbars.",
84-
)
85-
86-
callback_url: str = pd.Field(
87-
None,
88-
title="Callback URL",
89-
description="Http PUT url to receive simulation finish event. "
90-
"The body content is a json file with fields "
91-
"``{'id', 'status', 'name', 'workUnit', 'solverVersion'}``.",
92-
)
93-
94-
path_dir: str = pd.Field(
95-
DEFAULT_DATA_DIR,
96-
title="Directory Path",
97-
description="Base directory where data and batch will be downloaded.",
98-
)
99-
100-
solver_version: str = pd.Field(
101-
None,
102-
title="Solver Version",
103-
description_str="Custom solver version to use. "
104-
"If not supplied, uses default for the current front end version.",
105-
)
106-
107-
# TODO properly refactor, plugins should not have web methods.
108-
batch_cached: Batch = pd.Field(
109-
None,
110-
title="Batch (Cached)",
111-
description="DEPRECATED: Optional field to specify ``batch``. Only used as a workaround internally "
112-
"so that ``batch`` is written when ``.to_file()`` and then the proper batch is loaded "
113-
"from ``.from_file()``. We recommend leaving unset as setting this field along with "
114-
"fields that were not used to create the task will cause errors.",
115-
)
116-
117-
@pd.root_validator(pre=False)
118-
def _warn_deprecation_2_10(cls, values):
119-
log.warning(
120-
"ℹ️ ⚠️ Backwards compatibility will be broken for all the ComponentModeler classes in tidy3d version 2.10. Migration documentation will be provided, and existing functionality can be accessed in a different way.",
121-
log_once=True,
122-
)
123-
return values
124-
73+
12574
@pd.validator("simulation", always=True)
12675
def _sim_has_no_sources(cls, val):
12776
"""Make sure simulation has no sources as they interfere with tool."""

0 commit comments

Comments
 (0)