MCPcopy Create free account
hub / github.com/Infiziert90/getnative / getw

Method getw

getnative/app.py:191–197  ·  view source on GitHub ↗
(self, h, only_even=True)

Source from the content-addressed store, hash-verified

189 return best_value, plot, self.resolutions
190
191 def getw(self, h, only_even=True):
192 w = h * self.ar
193 w = int(round(w))
194 if only_even:
195 w = w // 2 * 2
196
197 return w
198
199 def analyze_results(self, vals):
200 ratios = [0.0]

Callers 2

runMethod · 0.95
save_imagesMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected