File tree Expand file tree Collapse file tree 2 files changed +14
-2
lines changed
tidy3d/components/data/unstructured Expand file tree Collapse file tree 2 files changed +14
-2
lines changed Original file line number Diff line number Diff line change @@ -541,7 +541,7 @@ def from_vtu(
541
541
542
542
Parameters
543
543
----------
544
- fname : str
544
+ file : str
545
545
Full path to the .vtu file to load the unstructured data from.
546
546
field : str = None
547
547
Name of the field to load.
@@ -580,14 +580,16 @@ def from_vtk(
580
580
581
581
Parameters
582
582
----------
583
- fname : str
583
+ file : str
584
584
Full path to the .vtk file to load the unstructured data from.
585
585
field : str = None
586
586
Name of the field to load.
587
587
remove_degenerate_cells : bool = False
588
588
Remove explicitly degenerate cells.
589
589
remove_unused_points : bool = False
590
590
Remove unused points.
591
+ remove_invalid_cells : bool = False
592
+ Remove invalid cells.
591
593
592
594
Returns
593
595
-------
@@ -697,6 +699,14 @@ def get_cell_values(self, **kwargs):
697
699
"""This function returns the cell values for the fields stored in the UnstructuredGridDataset.
698
700
If multiple fields are stored per point, like in an IndexedVoltageDataArray, cell values
699
701
will be provided for each of the fields unless a selection argument is provided, e.g., voltage=0.2
702
+ Parameters
703
+ ----------
704
+ **kwargs : dict
705
+ Keyword arguments to pass to the xarray sel() function.
706
+ Returns
707
+ -------
708
+ numpy.ndarray
709
+ Extracted data.
700
710
"""
701
711
702
712
values = self .values .sel (** kwargs )
Original file line number Diff line number Diff line change @@ -614,6 +614,8 @@ def plot(
614
614
Type of shading to use when plotting the data field.
615
615
cbar_kwargs : Dict = {}
616
616
Additional parameters passed to colorbar object.
617
+ pcolor_kwargs: Dict = {}
618
+ Additional parameters passed to ax.tripcolor()
617
619
618
620
Returns
619
621
-------
You can’t perform that action at this time.
0 commit comments