geodata.Mask.from_name

geodata.Mask.from_name#

classmethod geodata.Mask.from_name(name: str, mask_dir: str = MASK_DIR)#

Load a previously saved mask object by name.

Parameters:
  • name (str) – Name of the saved mask.

  • mask_dir (str) – Directory to look for previously saved mask file and where the mask object will be updated. By default, it should be the MASK_PATH specified in config.py

Returns:

The loaded mask object.

Return type:

Mask