given split proportions checks if should split Examples: >>> should_split([10,0,0]) False >>> should_split([1,.1,.2]) True
(split)
| 33 | |
| 34 | |
| 35 | def should_split(split): |
| 36 | """ |
| 37 | given split proportions checks if should split |
| 38 | Examples: |
| 39 | >>> should_split([10,0,0]) |
| 40 | False |
| 41 | >>> should_split([1,.1,.2]) |
| 42 | True |
| 43 | """ |
| 44 | return max(split) / sum(split) != 1. |
| 45 | |
| 46 | |
| 47 | def get_ext(path): |