Debug

backtrace error

dust's picture

so i just started getting this backtrace error again, but this time it has something to do with published ports not being by registered or kvc compliant or something.

this is one of the errrors

Cannot remove an observer <QCPatchParametersView 0x1002f9bb0> for the key path "input" from <QCSplitter 0x11766a290> because it is not registered as an observer.

it doesn't matter if i am removing or adding and or publishing a splitter. this error particularly arises if i use the kcore publish all to root feature which i love.

im using QC Version 4.0 (103.1) on framework 4.2 with OS X 10.6.5

so its not a big deal but thought i would bring it up not sure if its just an apple beta thing as SL beta 10.6.0 was giving me these backtrace errors as well. i think it has something to do with kcore so im posting it here unless someone thinks i should radar at apple ?

Sorting arrays and splitting arrays in Javascript

usefuldesign.au's picture

Javascript help for novice coders like me!

Apart from the fact that the JS patch is temperamental — requiring restarts of QC application when it will not parse good script — I attempted to clear up some of the mysteries I had around working with 2D datasets in Javascript. Standard JS array methods that work for 1D arrays often don't work for more complicated array structures.

This composition has three demo JS patches for:

splitting a set of points into two sets (odds and evens by index), sorting an array of dictionaries by a common dictionary key (a-Z) & concatenating both internally created and inputed structures into one array

All the code is well commented, I hope it can save some of the suffering for others that the JS patch has given me. So let me know if it does and I will have been rewarded for posting it.