Skip to main content
Ctrl+K

3-ID-C BITS 0.0.1

  • Tutorials
  • How-to guides
  • Reference
  • Explanation
  • Contributing
  • API Reference
  • GitHub
  • Issue tracker
  • Tutorials
  • How-to guides
  • Reference
  • Explanation
  • Contributing
  • API Reference
  • GitHub
  • Issue tracker

Section Navigation

  • Cheat sheet
  • Quick reference
  • Configuration files
  • Presentations
  • API Reference
    • id3c
      • id3c.callbacks
        • id3c.callbacks.demo_nexus_callback
        • id3c.callbacks.demo_spec_callback
      • id3c.configs
      • id3c.devices
        • id3c.devices.area_detector
        • id3c.devices.interlocked_motor
        • id3c.devices.laser_optics
        • id3c.devices.omega_laser_interlock
      • id3c.plans
        • id3c.plans.ad_plugins
        • id3c.plans.flyscan_3idc
        • id3c.plans.sim_plans
      • id3c.startup
      • id3c.suspenders
      • id3c.tests
        • id3c.tests.test_ad_plugins
        • id3c.tests.test_check_ad_files_symlink
        • id3c.tests.test_check_cam_armed
        • id3c.tests.test_effective_num_images
        • id3c.tests.test_ensure_ad_files_symlink
        • id3c.tests.test_expected_frame_count
        • id3c.tests.test_external_link_target
        • id3c.tests.test_flyscan_3idc_analysis
        • id3c.tests.test_flyscan_repair
        • id3c.tests.test_pair_frames_from_ad_file
        • id3c.tests.test_path_templates
        • id3c.tests.test_wait_for_openable
        • id3c.tests.test_write_flyscan_data
      • id3c.user
        • id3c.user.s3idc_plans
      • id3c.utils
        • id3c.utils.flyscan_3idc_analysis
        • id3c.utils.flyscan_repair
  • Reference
  • API Reference
  • id3c
  • id3c.tests
  • id3c.tests.test_external_link_target

id3c.tests.test_external_link_target#

Tests for id3c.plans.flyscan_3idc._external_link_target.

Pure-Python: builds duck-typed det.hdf1 objects from synthetic templates and IOC paths, exercises the common-suffix construction, the legacy fallback, and the warning paths.

Functions#

test_strips_write_path_template_prefix()

write_path_template prefix is stripped from full_file_name.

test_handles_template_without_trailing_slash()

write_path_template without a trailing slash is normalized.

test_custom_ad_files_root()

A non-default ad_files_root parameter is honoured.

test_falls_back_when_template_missing(caplog)

Missing write_path_template falls back to legacy target.

test_falls_back_when_template_does_not_prefix_full_file_name(caplog)

Stale write_path_template (no prefix match) falls back.

test_template_equal_to_full_file_name_yields_empty_suffix()

Empty suffix when full_file_name equals the template.

test_uses_underscore_write_path_template_fallback()

Falls back to _write_path_template if write_path_template is absent.

Module Contents#

id3c.tests.test_external_link_target.test_strips_write_path_template_prefix()[source]#

write_path_template prefix is stripped from full_file_name.

The remaining common suffix is appended to the per-detector root.

id3c.tests.test_external_link_target.test_handles_template_without_trailing_slash()[source]#

write_path_template without a trailing slash is normalized.

id3c.tests.test_external_link_target.test_custom_ad_files_root()[source]#

A non-default ad_files_root parameter is honoured.

id3c.tests.test_external_link_target.test_falls_back_when_template_missing(caplog)[source]#

Missing write_path_template falls back to legacy target.

Encapsulates the full absolute path and logs a WARNING.

id3c.tests.test_external_link_target.test_falls_back_when_template_does_not_prefix_full_file_name(caplog)[source]#

Stale write_path_template (no prefix match) falls back.

Logs a WARNING and uses the legacy absolute-path target.

id3c.tests.test_external_link_target.test_template_equal_to_full_file_name_yields_empty_suffix()[source]#

Empty suffix when full_file_name equals the template.

The helper handles this rather than raising.

id3c.tests.test_external_link_target.test_uses_underscore_write_path_template_fallback()[source]#

Falls back to _write_path_template if write_path_template is absent.

previous

id3c.tests.test_expected_frame_count

next

id3c.tests.test_flyscan_3idc_analysis

On this page
  • Functions
  • Module Contents
    • test_strips_write_path_template_prefix()
    • test_handles_template_without_trailing_slash()
    • test_custom_ad_files_root()
    • test_falls_back_when_template_missing()
    • test_falls_back_when_template_does_not_prefix_full_file_name()
    • test_template_equal_to_full_file_name_yields_empty_suffix()
    • test_uses_underscore_write_path_template_fallback()
Edit on GitHub
Show Source

© Copyright 2014-2026, APS.

Created using Sphinx 9.0.4.

Built with the PyData Sphinx Theme 0.20.0.