view tests.xml @ 1:6e9e98a7be4e draft default tip

planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/background_removal commit 649a1e6ecb925bed885a8477fe82dfd9dfea8baa
author imgteam
date Tue, 30 Jul 2024 08:08:50 +0000
parents e2c6bedc6b73
children
line wrap: on
line source

<macros>

    <!-- Macros for verification of image outputs -->

    <xml
        name="tests/binary_image_diff"
        tokens="name,value,ftype,metric,eps"
        token_metric="mae"
        token_eps="0.01">

        <output name="@NAME@" value="@VALUE@" ftype="@FTYPE@" compare="image_diff" metric="@METRIC@" eps="@EPS@" pin_labels="0">
            <assert_contents>
                <has_image_n_labels n="2"/>
                <yield/>
            </assert_contents>
        </output>

    </xml>

    <xml
        name="tests/label_image_diff"
        tokens="name,value,ftype,metric,eps,pin_labels"
        token_metric="iou"
        token_eps="0.01"
        token_pin_labels="0">

        <output name="@NAME@" value="@VALUE@" ftype="@FTYPE@" compare="image_diff" metric="@METRIC@" eps="@EPS@" pin_labels="@PIN_LABELS@">
            <assert_contents>
                <yield/>
            </assert_contents>
        </output>

    </xml>

    <xml
        name="tests/intensity_image_diff"
        tokens="name,value,ftype,metric,eps"
        token_metric="rms"
        token_eps="0.01">

        <output name="@NAME@" value="@VALUE@" ftype="@FTYPE@" compare="image_diff" metric="@METRIC@" eps="@EPS@">
            <assert_contents>
                <yield/>
            </assert_contents>
        </output>

    </xml>

    <!-- Variants of the above for verification of collection elements -->

    <xml
        name="tests/binary_image_diff/element"
        tokens="name,value,ftype,metric,eps"
        token_metric="mae"
        token_eps="0.01">

        <element name="@NAME@" value="@VALUE@" ftype="@FTYPE@" compare="image_diff" metric="@METRIC@" eps="@EPS@" pin_labels="0">
            <assert_contents>
                <has_image_n_labels n="2"/>
                <yield/>
            </assert_contents>
        </element>

    </xml>

    <xml
        name="tests/label_image_diff/element"
        tokens="name,value,ftype,metric,eps"
        token_metric="iou"
        token_eps="0.01"
        token_pin_labels="0">

        <element name="@NAME@" value="@VALUE@" ftype="@FTYPE@" compare="image_diff" metric="@METRIC@" eps="@EPS@" pin_labels="@PIN_LABELS@">
            <assert_contents>
                <yield/>
            </assert_contents>
        </element>

    </xml>

    <xml
        name="tests/intensity_image_diff/element"
        tokens="name,value,ftype,metric,eps"
        token_metric="rms"
        token_eps="0.01">

        <element name="@NAME@" value="@VALUE@" ftype="@FTYPE@" compare="image_diff" metric="@METRIC@" eps="@EPS@">
            <assert_contents>
                <yield/>
            </assert_contents>
        </element>

    </xml>

</macros>