Commit d4f453d
committed
Make PIL import lazy in bands_to_img and color_values (#947)
Pillow is not a declared dependency, so importing it at module level
breaks environments that don't have it installed (like CI).
Move the import inside the two functions that need it.1 parent 6527e8b commit d4f453d
1 file changed
Lines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
10 | 9 | | |
11 | 10 | | |
12 | 11 | | |
| |||
556 | 555 | | |
557 | 556 | | |
558 | 557 | | |
| 558 | + | |
| 559 | + | |
559 | 560 | | |
560 | 561 | | |
561 | 562 | | |
| |||
651 | 652 | | |
652 | 653 | | |
653 | 654 | | |
| 655 | + | |
| 656 | + | |
654 | 657 | | |
655 | 658 | | |
656 | 659 | | |
| |||
0 commit comments