barbaLab / nigeLab

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

[BUG] Infinte loop during tank initialization #67

Closed Nabarb closed 4 years ago

Nabarb commented 4 years ago

Bug Report

Infinite loop when trying to init a new Tank

The infinite loop is caused at line 922 (nigelObj.m) when obj.updateParams(obj.Type) is called. After this, it enters a conditional statement at line 4026 (nigelObj.m) where it tries to print to the console obj.Name. This calls again obj.updateParams(obj.Type) inside the get.Name(obj) function (line 922, nigelObj.m)

'Direct' loading during updateParams is failing

While trying to updateParams directly from the defaults file, the methods fails at line 4050. This happens when the parameters are not already loaded.

Machine

Nabarb commented 4 years ago

Should work now.