Peano
Loading...
Searching...
No Matches
test_point_probe Namespace Reference

Functions

 patch_file (dimensions, metadata_kind, name, dof, unknowns, patches, mapping=None, description="test data")
 patches: list of (patch_id, offset, size) metadata_kind: "cell" or "vertex"
 
 meta_file (snapshots)
 snapshots: list of (timestamp, [file names])
 
 read_csv (file_name)
 
 probe_single_file (tmp_path, monkeypatch, content, point)
 
 test_cell_data_2d_picks_right_cell (tmp_path, monkeypatch)
 
 test_point_on_face_takes_upper_patch (tmp_path, monkeypatch)
 
 test_point_on_domain_boundary_takes_lower_patch (tmp_path, monkeypatch)
 
 test_adaptive_mesh_takes_finest_patch (tmp_path, monkeypatch)
 
 test_cell_data_3d (tmp_path, monkeypatch)
 
 test_2d_data_ignores_z (tmp_path, monkeypatch)
 
 test_vertex_data_nearest_dof_with_mapping (tmp_path, monkeypatch)
 
 test_point_outside_domain_yields_nan (tmp_path, monkeypatch)
 
 test_cell_data_with_non_default_mapping_is_rejected (tmp_path, monkeypatch)
 
 test_meta_file_with_partial_files_and_multiple_snapshots (tmp_path, monkeypatch)
 
 test_meta_file_in_other_directory (tmp_path, monkeypatch)
 
 test_named_unknowns_become_column_names (tmp_path, monkeypatch)
 
 test_same_names_in_two_data_sets_are_prefixed (tmp_path, monkeypatch)
 
 test_patch_filter_skips_patches (tmp_path)
 

Variables

list TWO_PATCHES_2D = [(1, (0.0, 0.0), (0.5, 0.5)), (2, (0.5, 0.0), (0.5, 0.5))]
 

Function Documentation

◆ meta_file()

test_point_probe.meta_file (   snapshots)

snapshots: list of (timestamp, [file names])

Definition at line 69 of file test_point_probe.py.

Referenced by test_meta_file_in_other_directory(), test_meta_file_with_partial_files_and_multiple_snapshots(), and test_same_names_in_two_data_sets_are_prefixed().

Here is the caller graph for this function:

◆ patch_file()

test_point_probe.patch_file (   dimensions,
  metadata_kind,
  name,
  dof,
  unknowns,
  patches,
  mapping = None,
  description = "test data" 
)

patches: list of (patch_id, offset, size) metadata_kind: "cell" or "vertex"

Definition at line 19 of file test_point_probe.py.

◆ probe_single_file()

◆ read_csv()

test_point_probe.read_csv (   file_name)

◆ test_2d_data_ignores_z()

test_point_probe.test_2d_data_ignores_z (   tmp_path,
  monkeypatch 
)

Definition at line 139 of file test_point_probe.py.

References probe_single_file().

Here is the call graph for this function:

◆ test_adaptive_mesh_takes_finest_patch()

test_point_probe.test_adaptive_mesh_takes_finest_patch (   tmp_path,
  monkeypatch 
)

Definition at line 124 of file test_point_probe.py.

References probe_single_file().

Here is the call graph for this function:

◆ test_cell_data_2d_picks_right_cell()

test_point_probe.test_cell_data_2d_picks_right_cell (   tmp_path,
  monkeypatch 
)

Definition at line 102 of file test_point_probe.py.

References probe_single_file().

Here is the call graph for this function:

◆ test_cell_data_3d()

test_point_probe.test_cell_data_3d (   tmp_path,
  monkeypatch 
)

Definition at line 131 of file test_point_probe.py.

References probe_single_file().

Here is the call graph for this function:

◆ test_cell_data_with_non_default_mapping_is_rejected()

test_point_probe.test_cell_data_with_non_default_mapping_is_rejected (   tmp_path,
  monkeypatch 
)

Definition at line 162 of file test_point_probe.py.

References probe_single_file().

Here is the call graph for this function:

◆ test_meta_file_in_other_directory()

test_point_probe.test_meta_file_in_other_directory (   tmp_path,
  monkeypatch 
)

Definition at line 196 of file test_point_probe.py.

References meta_file(), and read_csv().

Here is the call graph for this function:

◆ test_meta_file_with_partial_files_and_multiple_snapshots()

test_point_probe.test_meta_file_with_partial_files_and_multiple_snapshots (   tmp_path,
  monkeypatch 
)

Definition at line 170 of file test_point_probe.py.

References meta_file(), and read_csv().

Here is the call graph for this function:

◆ test_named_unknowns_become_column_names()

test_point_probe.test_named_unknowns_become_column_names (   tmp_path,
  monkeypatch 
)

Definition at line 218 of file test_point_probe.py.

References probe_single_file().

Here is the call graph for this function:

◆ test_patch_filter_skips_patches()

test_point_probe.test_patch_filter_skips_patches (   tmp_path)

Definition at line 242 of file test_point_probe.py.

◆ test_point_on_domain_boundary_takes_lower_patch()

test_point_probe.test_point_on_domain_boundary_takes_lower_patch (   tmp_path,
  monkeypatch 
)

Definition at line 117 of file test_point_probe.py.

References probe_single_file().

Here is the call graph for this function:

◆ test_point_on_face_takes_upper_patch()

test_point_probe.test_point_on_face_takes_upper_patch (   tmp_path,
  monkeypatch 
)

Definition at line 110 of file test_point_probe.py.

References probe_single_file().

Here is the call graph for this function:

◆ test_point_outside_domain_yields_nan()

test_point_probe.test_point_outside_domain_yields_nan (   tmp_path,
  monkeypatch 
)

Definition at line 156 of file test_point_probe.py.

References probe_single_file().

Here is the call graph for this function:

◆ test_same_names_in_two_data_sets_are_prefixed()

test_point_probe.test_same_names_in_two_data_sets_are_prefixed (   tmp_path,
  monkeypatch 
)

Definition at line 225 of file test_point_probe.py.

References meta_file(), and read_csv().

Here is the call graph for this function:

◆ test_vertex_data_nearest_dof_with_mapping()

test_point_probe.test_vertex_data_nearest_dof_with_mapping (   tmp_path,
  monkeypatch 
)

Definition at line 145 of file test_point_probe.py.

References probe_single_file().

Here is the call graph for this function:

Variable Documentation

◆ TWO_PATCHES_2D

list test_point_probe.TWO_PATCHES_2D = [(1, (0.0, 0.0), (0.5, 0.5)), (2, (0.5, 0.0), (0.5, 0.5))]

Definition at line 99 of file test_point_probe.py.