mvgorcum / Sessile.drop.analysis

Python script to analyse sessile drops by measuring contact angle, drop volume and contact line speed
https://www.drop-analysis.com
GNU General Public License v3.0
28 stars 12 forks source link

DataFrame Append #13

Closed ebrown91 closed 1 year ago

ebrown91 commented 1 year ago

Running the sample video provided raspberrypi@raspberrypi:~ $ drop_analysis libpng warning: iCCP: known incorrect sRGB profile libpng warning: iCCP: known incorrect sRGB profile Traceback (most recent call last): File "/home/raspberrypi/.local/lib/python3.9/site-packages/drop_analysis/gui.py", line 113, in updateFitHeightLine ,basearray=self.BaseLine.getArrayRegion(self.VideoItem.image, self.VideoItem, returnSlice=False, returnMappedCoords=True) File "/home/raspberrypi/.local/lib/python3.9/site-packages/pyqtgraph/graphicsItems/ROI.py", line 2208, in getArrayRegion rgn = fn.affineSlice(data, shape=(int(d.length()),), vectors=[Point(d.norm())], origin=o, axes=axes, order=order, returnCoords=returnMappedCoords, *kwds) File "/home/raspberrypi/.local/lib/python3.9/site-packages/pyqtgraph/functions.py", line 809, in affineSlice trAx = list(range(data.ndim)) AttributeError: 'NoneType' object has no attribute 'ndim' Exception in thread Thread-1: Traceback (most recent call last): File "/usr/lib/python3.9/threading.py", line 954, in _bootstrap_inner self.run() File "/usr/lib/python3.9/threading.py", line 892, in run self._target(self._args, **self._kwargs) File "/home/raspberrypi/.local/lib/python3.9/site-packages/drop_analysis/gui.py", line 235, in RunAnalysis self.MeasurementResult=self.MeasurementResult.append(results,ignore_index=True)#append depreciated changed to concat File "/home/raspberrypi/.local/lib/python3.9/site-packages/pandas/core/generic.py", line 5989, in getattr return object.getattribute(self, name) AttributeError: 'DataFrame' object has no attribute 'append'

mvgorcum commented 1 year ago

Thanks for your report! The next version will fix this issue. If you want to get a working version now you can install from the master branch.

mvgorcum commented 1 year ago

With v1.0.0rc1 this issue is fixed.

ebrown91 commented 1 year ago

Thanks a bunch!

On Fri, May 5, 2023 at 10:12 AM Mathijs van Gorcum @.***> wrote:

Thanks for your report! The next version will fix this issue. If you want to get a working version now you can install from the master branch.

— Reply to this email directly, view it on GitHub https://github.com/mvgorcum/Sessile.drop.analysis/issues/13#issuecomment-1536479699, or unsubscribe https://github.com/notifications/unsubscribe-auth/AN2H5KNCJFYUZD2FNTE6T7LXEURIPANCNFSM6AAAAAAXSGCRNA . You are receiving this because you authored the thread.Message ID: @.***>