deepfinder.convert package

Module contents

class deepfinder.convert.ParamsGenTarget[source]

Bases: object

write(filename)[source]
class deepfinder.convert.ParamsTrain[source]

Bases: object

write(filename)[source]
deepfinder.convert.objl_add(objl, label, coord, obj_id=None, tomo_idx=None, orient=(None, None, None), cluster_size=None)[source]
deepfinder.convert.objl_disp(objlIN)[source]

Prints objl in terminal

deepfinder.convert.objl_get_class(objl, label)[source]

Get all objects of specified class.

Args:

objl (list of dict) label (int)

Returns:

list of dict: contains only objects from class ‘label’

deepfinder.convert.objl_get_labels(objl)[source]

Returns a list with different (unique) labels contained in input objl

deepfinder.convert.objl_get_tomo(objl, tomo_idx)[source]

Get all objects originating from tomo ‘tomo_idx’.

Args:

objl (list of dict): contains objects from various tomograms tomo_idx (int): tomogram index

Returns:

list of dict: contains objects from tomogram ‘tomo_idx’

deepfinder.convert.objl_read(filename)[source]
deepfinder.convert.objl_write(objl, filename)[source]