MCPcopy Create free account
hub / github.com/DeepMicroscopy/Exact / width

Method width

imagetagger/imagetagger/annotations/models.py:115–120  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

113
114 @cached_property
115 def width(self):
116 if len(self.vector) is 4: # bounding box and line
117 return self.vector['x2']-self.vector['x1']
118 elif len(self.vector) > 4:
119 return max(0, self.max_x - self.min_x)
120 return 0 # pointi, polygon
121
122 @property
123 def radius(self):

Callers 15

adjustFunction · 0.80
updateFunction · 0.80
setOptionsFunction · 0.80
bootstrap.min.jsFile · 0.80
adjustFunction · 0.80
updateFunction · 0.80
setOptionsFunction · 0.80
moveMethod · 0.80
constructorMethod · 0.80
calculateImageScaleFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected