Skip to content

Commit 1282a66

Browse files
committed
Small updates
1 parent b0d8cec commit 1282a66

File tree

2 files changed

+10
-11
lines changed

2 files changed

+10
-11
lines changed

tidy3d/components/data/unstructured/base.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,6 @@ def number_of_values_matches_points(cls, val, values):
122122

123123
points = values.get("points")
124124
num_points = len(points)
125-
126125
if num_points != num_values:
127126
raise ValidationError(
128127
f"The number of data values ({num_values}) does not match the number of grid "

tidy3d/components/tcad/data/sim_data.py

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,10 @@ class DeviceCharacteristics(Tidy3dBaseModel):
8686

8787

8888
class AbstractHeatChargeSimulationData(AbstractSimulationData, ABC):
89+
"""Abstract class for HeatChargeSimulation results, or VolumeMesher results."""
90+
91+
92+
class HeatChargeSimulationData(AbstractHeatChargeSimulationData):
8993
"""Stores results of a :class:`HeatChargeSimulation`.
9094
9195
Example
@@ -358,10 +362,6 @@ def plot_field(
358362
return ax
359363

360364

361-
class HeatChargeSimulationData(AbstractHeatChargeSimulationData):
362-
pass
363-
364-
365365
class HeatSimulationData(HeatChargeSimulationData):
366366
"""DEPRECATED: Wrapper for Heat Simulation data.
367367
@@ -394,19 +394,19 @@ class VolumeMesherData(AbstractHeatChargeSimulationData):
394394
description="Original :class:`VolumeMesher` associated with the data.",
395395
)
396396

397+
monitors: tuple[VolumeMeshMonitor, ...] = pd.Field(
398+
...,
399+
title="Monitors",
400+
description="List of monitors to be used for the mesher.",
401+
)
402+
397403
data: tuple[VolumeMeshData, ...] = pd.Field(
398404
...,
399405
title="Monitor Data",
400406
description="List of :class:`.MonitorData` instances "
401407
"associated with the monitors of the original :class:`.VolumeMesher`.",
402408
)
403409

404-
monitors: tuple[VolumeMeshMonitor, ...] = pd.Field(
405-
...,
406-
title="Monitors",
407-
description="List of monitors to be used for the mesher.",
408-
)
409-
410410
@property
411411
def mesher(self) -> VolumeMesher:
412412
"""Get the mesher associated with this mesher data."""

0 commit comments

Comments
 (0)