Skip to content
Snippets Groups Projects
Commit d3b072b2 authored by Jan David Mol's avatar Jan David Mol
Browse files

TMSS-747: Fix deprecation warning for python 3.5+

parent 6df0ec44
No related branches found
No related tags found
1 merge request!451TMSS-747: Fix COBALT beamformer model in the blocksize calculation. Added...
from fractions import gcd
try:
from math import gcd
except ImportError:
from fractions import gcd
__all__ = ["lcm"]
def lcm(a, b):
""" Return the Least Common Multiple of a and b. """
return abs(a * b) / gcd(a, b) if a and b else 0
return int(abs(a * b) / gcd(a, b) if a and b else 0)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment