mirror of
https://github.com/myned/modufur.git
synced 2024-12-25 06:37:29 +00:00
Added helper for aspect ratio
This commit is contained in:
parent
ea48d7c6bf
commit
916f4eb782
1 changed files with 7 additions and 0 deletions
|
@ -159,6 +159,13 @@ def get_kwargs(ctx, args, *, limit=False):
|
||||||
raise exc.BoundsError(arg)
|
raise exc.BoundsError(arg)
|
||||||
|
|
||||||
return {'destination': destination, 'remaining': remaining, 'remove': rm, 'limit': lim}
|
return {'destination': destination, 'remaining': remaining, 'remove': rm, 'limit': lim}
|
||||||
|
|
||||||
|
|
||||||
|
def get_aspectratio(a, b):
|
||||||
|
divisor = gcd(a, b)
|
||||||
|
return f'{int(a / divisor)}:{int(b / divisor)}'
|
||||||
|
|
||||||
|
|
||||||
def ci(pos, n):
|
def ci(pos, n):
|
||||||
z = 1.96
|
z = 1.96
|
||||||
phat = float(pos) / n
|
phat = float(pos) / n
|
||||||
|
|
Loading…
Reference in a new issue