Model package

mohinh module

class tomopal.model.mohinh.ModelMaker(model_name=None, centerxy=array([], dtype=float64), blocks=array([], dtype=float64), values=array([], dtype=float64), values_log=0, bck=1)[source]

Bases: object

__init__(model_name=None, centerxy=array([], dtype=float64), blocks=array([], dtype=float64), values=array([], dtype=float64), values_log=0, bck=1)[source]
Parameters
  • model_name – path to the file to be created containing the output

  • centerxy – x-y coordinates of the center of the cells

  • blocks – coordinates of the corners of the different blocks

  • values – array containing the value assigned to each block

  • values_log – flag indicating if values should be log transformed or not

  • bck – background value

button_submit(text)[source]

Controls what happens when pressing Enter in the text box :param text: Entered value, supposed to be a number :return:

disconnect()[source]

Disconnect the Polygon selector :return:

onselect(verts)[source]

Defines what happens when a polygon is completed

Parameters

verts – polygon vertices automatically returned by the Polygon Selector

Returns

tomopal.model.mohinh.find_norm(l)[source]

Module contents