wfng92 d2026d0509 Fix error when init_mask=None and invert_mask=True
In the event where no `init_mask` is given and `invert_mask` is set to True, the script will raise the following error:

```bash
AttributeError: 'NoneType' object has no attribute 'mode'
```

The new implementation will only run inversion when both variables are valid.
2022-12-08 22:37:11 -05:00
..
2022-09-27 01:39:17 +02:00
2022-12-08 22:34:49 -05:00
2022-09-12 14:31:48 -04:00
2022-11-30 16:12:23 -05:00