More compact return statement

This commit is contained in:
Josh Meyer 2021-05-18 06:47:32 -04:00
parent 9a708328e7
commit 7bec52c55d

View File

@ -107,10 +107,7 @@ def parse_augmentations(augmentation_specs):
-------
List of augmentation class instances from util.augmentations.*.
"""
if augmentation_specs is None:
return []
else:
return list(map(parse_augmentation, augmentation_specs))
return list(map(parse_augmentation, augmentation_specs or []))
def apply_graph_augmentations(domain, tensor, augmentations, transcript=None, clock=0.0):