barbaLab / nigeLab

Neurophysiological data analyses by engineers, for physiologists.
GNU General Public License v3.0
14 stars 2 forks source link

[BUG] Extra figure generated via nigeLab.nigelObj/nigelDash() method #63

Closed m053m716 closed 4 years ago

m053m716 commented 4 years ago

Bug Report

Description

An extra figure (Figure 1) pops up before the main nigelDash Interface figure comes up. Not a big deal, but I cannot figure out why this window is popping up every time since there is only one figure call and all other graphics objects references either reference that figure explicitly in the constructor or reference a child object of the figure handle.

Error Messages

Machine

Urgency

m053m716 commented 4 years ago

Addressed in recent push to dev: issue resolved.

m053m716 commented 4 years ago

Looks like this was not resolved after-all. Appears it's an issue where the first time one of the nigeLab.Tank properties is assigned (.GUI, which is Dependent and stores the handle in .GUIContainer), there is something about the assignment that causes the extra figure to be generated. Previously I didn't have a class validator on those properties because nigeLab.libs.DashBoard and nigeLab.Sort couldn't be constructed without input arguments. However, I changed both classes since they are only accessed via methods of nigeLab.nigelObj at this point, and now they can be constructed with no inputs (as empty handles). So since that works, they can now be used as property validators; setting the property validation to the correct class for .GUI, .GUIContainer, and .SortGUI properties seems to have resolved this for now as far as I can tell.

m053m716 commented 4 years ago

Resolved: see Pull Request (#69 )