def read_from_file(self, filepathname): ''' import image from file using the mpimg utility of matplotlib''' # todo warnings about file existing ? self.data = mpimg.imread(filepathname)