Beispiel #1
0
def test__trail_size_to_array_edge():

    layout = ac.Layout1DLine(shape_1d=(5, ),
                             region_list=[ac.Region1D(region=(0, 3))])

    assert layout.trail_size_to_array_edge == 2

    layout = ac.Layout1DLine(shape_1d=(7, ),
                             region_list=[ac.Region1D(region=(0, 3))])

    assert layout.trail_size_to_array_edge == 4

    layout = ac.Layout1DLine(
        shape_1d=(15, ),
        region_list=[
            ac.Region1D(region=(0, 2)),
            ac.Region1D(region=(5, 8)),
            ac.Region1D(region=(11, 14)),
        ],
    )

    assert layout.trail_size_to_array_edge == 1

    layout = ac.Layout1DLine(
        shape_1d=(20, ),
        region_list=[
            ac.Region1D(region=(0, 2)),
            ac.Region1D(region=(5, 8)),
            ac.Region1D(region=(11, 14)),
        ],
    )

    assert layout.trail_size_to_array_edge == 6
"""
dataset_name = "species_x2"
dataset_path = path.join("dataset", "line", dataset_name)
"""
__Shape__

The 1D shape of each charge line in the dataset.
"""
shape_native = (200, 1)
"""
__Regions__

The locations of the prescan and overscan on the 1D line data, which is used to visualize the cti-line during the 
model-fit and customize aspects of the model-fit.
"""
prescan = ac.Region1D((0, 10))
overscan = ac.Region1D((190, 200))
"""
Specify the charge regions on the cti line, corresponding to where a signal is contained that has its electrons 
captured and trailed by CTI.
"""
region_1d_list = [(10, 20)]
"""
__Normalizations__

We require the normalization of the charge in every cti line dataset, as the names of the files are tagged with this.
"""
normalization_list = [100, 5000, 25000, 84700]
"""
__Layout__