From b844fdb9212769406f96c221df2c5d01f32422f4 Mon Sep 17 00:00:00 2001 From: Jonathan Mendez Date: Thu, 8 Jun 2023 11:35:54 -0500 Subject: [PATCH] Remove unnecessary helper function per PR review Signed-off-by: Jonathan Mendez --- examples/nidigital_spi/measurement.py | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/examples/nidigital_spi/measurement.py b/examples/nidigital_spi/measurement.py index 7005f6289..9c795f068 100644 --- a/examples/nidigital_spi/measurement.py +++ b/examples/nidigital_spi/measurement.py @@ -104,8 +104,8 @@ def measure( str(_resolve_relative_path(service_directory, pattern_file_path)), ) - levels_file_name = _get_file_name_from_path(levels_file_path) - timing_file_name = _get_file_name_from_path(timing_file_path) + levels_file_name = pathlib.Path(levels_file_path).stem + timing_file_name = pathlib.Path(timing_file_path).stem selected_sites.apply_levels_and_timing(levels_file_name, timing_file_name) selected_sites.burst_pattern(start_label="SPI_Pattern") site_pass_fail = selected_sites.get_site_pass_fail() @@ -157,11 +157,6 @@ def _resolve_relative_path( return (directory_path / file_path).resolve() -def _get_file_name_from_path(file_path: Union[str, pathlib.PurePath]) -> str: - file_path = pathlib.PurePath(file_path) - return file_path.stem - - @click.command @verbosity_option @grpc_device_options