JingyiGF / HERBS

MIT License
18 stars 15 forks source link

Unable to load probes or projects containing probes #40

Closed AutomatedOlfactoryBehaviour closed 1 year ago

AutomatedOlfactoryBehaviour commented 1 year ago

I've encountered a problem with loading probe objects. Merged probe tracts were saved using File -> Save Object -> probes without any error messages showing up in the console. When loading the probes (File -> Load Objects), the following error message is displayed in the console and nothing is loaded: image

Possibly that's a simple typo as numpy has an attribute called "vstack" but not "vstck" and when changing the line that throws the error to "vstack" in the "herbsgui.py" file it does happily load the probes and so far I've found no issues when interacting with them (i.e. changing width, opacity, etc).

Unrelated to the first part, I also tried saving a project containing merged probe tracts through File -> Save Project, again no error messages displayed when saving. When loading such a project (File -> Load Project) it also loads the project and the contained probes with no error message. Probes are shown on the Object Viewer Panel and the 3D panel and seem fine (i.e. the information pop-up also shows the correct details, they can be unmerged and merged again). However when viewing them in 3D and trying to change (i.e. their width, opacity, etc), errors appear. The following is the error when changing the width: image

The following is the error for changing opacity: image

The issues happen when running Herbs 0.2.2 on both Python 3.8.16 and 3.9.16 (on a Windows 10 machine with Anaconda 2.4.0). Not sure if it's related to the issue I'm having when saving segmented fluorescence/virus objects or if this is a separate issue.

Anyway, fingers crossed it's resolveable because so far I'm a very big fan :)

JingyiGF commented 1 year ago

Hi, thanks for reporting this issue. I will fix it next week. Last week was Easter holiday and this week I have no functional computer can be used. I will get my computer back next Monday. So will update you then.

nataliekoh commented 1 year ago

Also seeing this error with the same error message!

JingyiGF commented 1 year ago

Hi, bug fixed in HERBS 0.2.3. Thank you all again for reporting this issue and waiting for so long! Please do let me know if there is further problems.

nataliekoh commented 1 year ago

Hi Jingyi, it works now!! Thank you so much for fixing this!