(self, key)
return self[key].copy()
Like normal item access but error.
Like normal item access but error.
Like normal item access but error .
def get(self, key):
        """Like normal item access but error."""
        key = key.lower()
        if key not in (self.keys()):
            raise KeyError("{} is not a valid COG profile name".format(key))

        if key in ["zstd", "webp", "lerc", "lerc_deflate", "lerc_zstd"]:
            warnings.warn(
                "Non-standard compression schema: {}. The output COG might not be fully"
                " supported by software not build against latest libtiff.".format(key)
            )

        return self[key].copy()
def get ( self , key ) : key = key . lower ( ) if key not in ( self . keys ( ) ) : raise KeyError ( "{} is not a valid COG profile name" . format ( key ) ) if key in [ "zstd" , "webp" , "lerc" , "lerc_deflate" , "lerc_zstd" ] : warnings . warn ( "Non-standard compression schema: {}. The output COG might not be fully" " supported by software not build against latest libtiff." . format ( key ) ) return self [ key ] . copy ( )