Skip to content

Overwriting behavior

John Bogovic edited this page Apr 23, 2024 · 3 revisions

The behavior of N5ScalePyramidExporter with regard to data overwriting.

Behavior

Overwriting is necessary when:

  • A dataset exists in the container at the selected path
    • The selected path will be completely removed before writing
  • A dataset exists in the container at a parent selected path
    • The relevant parent dataset will be completely removed before writing
  • A dataset exists in the container at a child of the selected path
    • The group at selected path will be completely removed before writing

Overwrite warnings

An overwrite warning will be displayed if:

  • The Overwrite option is unselected AND
  • Any of the overwriting conditions are satisfied

Second overwrite warning

A second overwrite warning will be displayed if:

  • A user option to skip this warning is set to false (see below) AND:
  • Any of the overwriting conditions are satisfied

Note that this is independent of the Overwrite checkbox.

The user option to skip this warning

The user option determines if this second warning should be skipped. It is set to false by default. It may be set to true by checking the box labelled "Do not show this warning again".

  • This script sets the value of the user option directly.
  • This script displays the current value of the user option directly.