CellProfiler / python-bioformats

Read and write life sciences file formats
Other
125 stars 45 forks source link

OMETiffWriter Error - has no attribute 'class_name' #121

Closed Nicholas-Schaub closed 4 years ago

Nicholas-Schaub commented 4 years ago

I am trying to create an OMETiffWriter class, but I am getting an error whenever I try to initialize the class. Below is the relevant error information:


File ".../python3.7/site-packages/bioformats/formatwriter.py", line 259, in __init__
    self.new_fn = jutil.make_new(self.class_name, '()V')
self.new_fn = jutil.make_new(self.class_name, '()V')

AttributeError: 'OMETiffWriter' object has no attribute 'class_name'

I believe that there is a bug in the code where it has self.class_name. I think either the self. should be removed or class_name should be assigned as an object attribute.