neurotorchmz.core.resources

neurotorchmz.core.resources#

Provides a utility library to load resources and strings

Functions

get_image(filename)

Open a image.

get_string(path)

Retreive a key by supplying the adress with slashes (example: tab2/algorithms/diffMax).

neurotorchmz.core.resources.get_image(filename: str) Image#

Open a image. Raises FileNotFoundError if the file can’t be opened

neurotorchmz.core.resources.get_string(path: str) str#

Retreive a key by supplying the adress with slashes (example: tab2/algorithms/diffMax). Returns ‘’ if the key is not found and the path itself if it does not point to a end node