cigvis.utils.utils module#

some utils

cigvis.utils.utils.auto_clim(d, scale=1)#
cigvis.utils.utils.check_mmap(d: ndarray) None#
cigvis.utils.utils.deprecated(custom_message=None, replacement=None, deprecated_in='0.2.1', remove_in='0.4.0')#

Decorator to mark functions as deprecated with an optional custom message and replacement function name.

Parameters:
  • custom_message – (str) Custom deprecation message

  • replacement – (str) The name of the replacement function

  • deprecated_in – (str) Version where the API was deprecated

  • remove_in – (str) Version where the API is scheduled for removal

cigvis.utils.utils.get_shape(vol, line_first)#
cigvis.utils.utils.is_torch_tensor(d)#
cigvis.utils.utils.mmap_max(d: ndarray)#
cigvis.utils.utils.mmap_min(d: ndarray)#
cigvis.utils.utils.nmax(d)#
cigvis.utils.utils.nmin(d)#