shape_to_string

glue.utils.array.shape_to_string(shape)[source]

On Windows, shape tuples use long ints which results in formatted shapes such as (2L, 3L). This function ensures that the shape is always formatted without the Ls.