You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I wanted to obtain the pore size distribution of an image generated by random_spheres method, but when I input the image to the filters.local_thickness, the error " 'FloatProgress' object has no attribute 'style' " occurs. I guess it is something related to the display of the progress bar. Moreover, I am executing the codes in Jupyter Notebook.
This is the error I get.
AttributeError Traceback (most recent call last)
in
----> 1 xx = ps.filters.local_thickness(im_test_spheres, mode="dt")
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I wanted to obtain the pore size distribution of an image generated by random_spheres method, but when I input the image to the filters.local_thickness, the error " 'FloatProgress' object has no attribute 'style' " occurs. I guess it is something related to the display of the progress bar. Moreover, I am executing the codes in Jupyter Notebook.
This is the error I get.
AttributeError Traceback (most recent call last)
in
----> 1 xx = ps.filters.local_thickness(im_test_spheres, mode="dt")
~/.local/lib/python3.8/site-packages/porespy/filters/_funcs.py in local_thickness(im, sizes, mode, divs)
1000
1001 """
-> 1002 im_new = porosimetry(im=im, sizes=sizes, access_limited=False, mode=mode,
1003 divs=divs)
1004 return im_new
~/.local/lib/python3.8/site-packages/porespy/filters/_funcs.py in porosimetry(im, sizes, inlets, access_limited, mode, divs)
1146 elif mode == "dt":
1147 imresults = np.zeros(np.shape(im))
-> 1148 for r in tqdm(sizes, **settings.tqdm):
1149 imtemp = dt >= r
1150 if access_limited:
~/.local/lib/python3.8/site-packages/tqdm/notebook.py in init(self, *args, **kwargs)
243 self.displayed = True
244 self.disp = self.display
--> 245 self.colour = colour
246
247 # Print initial bar state
~/.local/lib/python3.8/site-packages/tqdm/notebook.py in colour(self, bar_color)
202 def colour(self, bar_color):
203 if hasattr(self, 'container'):
--> 204 self.container.children[-2].style.bar_color = bar_color
205
206 def init(self, *args, **kwargs):
AttributeError: 'FloatProgress' object has no attribute 'style'
Looking forward to hearing from you.
Best,
Foojan
Beta Was this translation helpful? Give feedback.
All reactions