Test format

This notebook is using the example style of testing, using the nbval py.test plugin.

This means no asserts are required, the nbval plugin just checks during each run if the stored output content of each cell is different than the output from the current execution.

PathManager

The PathManager manages the full paths to all data in the local image database.

This is useful whenever during interactive data analysis, one needs a path to a specific product.

Usually, it refers to the io.dbroot path (or get's it from the get_db_root()), but as we don't have that path on Travis, we just make up a virtual db path here.


In [ ]:
from pyciss import io
img_id = 'N1695760475'
pm = io.PathManager(img_id, savedir='/myroot')

In [ ]:
pm.basepath

In [ ]:
pm.img_id

In [ ]:
pm.raw_image

In [ ]:
pm.cubepath

In [ ]:
pm.raw_label

In [ ]:
pm.cal_cub

In [ ]:
pm.dst_cub

In [ ]:
pm.calib_img

In [ ]:
pm.calib_label

In [ ]:
pm.tif