Commit 1eed807
committed
Set element.ndi_element_class to match MATLAB class(self) behavior
MATLAB's element.newdocument() sets element.ndi_element_class to
class(ndi_element_obj), which returns the MATLAB class name (e.g.
"ndi.element", "ndi.probe.timeseries.mfdaq"). Python was leaving this
as the schema default "ndi_element".
Changes:
- Element: Add ndi_element_class() returning "ndi.element", set it
in newdocument()
- Probe: Override ndi_element_class() to use probetype2object.json
mapping (e.g. "n-trode" -> "ndi.probe.timeseries.mfdaq"), remove
redundant newdocument() override (inherit from Element like MATLAB)
- Element.searchquery(): Match MATLAB's query which includes name,
type, ndi_element_class, and reference (was only base.id)
https://claude.ai/code/session_01RBSaNF8SSrGqnpnP5vUT471 parent efcebe7 commit 1eed807
2 files changed
Lines changed: 39 additions & 28 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
183 | 183 | | |
184 | 184 | | |
185 | 185 | | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
186 | 200 | | |
187 | 201 | | |
188 | 202 | | |
| |||
393 | 407 | | |
394 | 408 | | |
395 | 409 | | |
| 410 | + | |
396 | 411 | | |
397 | 412 | | |
398 | 413 | | |
| |||
421 | 436 | | |
422 | 437 | | |
423 | 438 | | |
| 439 | + | |
| 440 | + | |
| 441 | + | |
| 442 | + | |
| 443 | + | |
| 444 | + | |
424 | 445 | | |
425 | 446 | | |
426 | 447 | | |
427 | 448 | | |
428 | 449 | | |
429 | | - | |
| 450 | + | |
| 451 | + | |
| 452 | + | |
| 453 | + | |
| 454 | + | |
430 | 455 | | |
431 | 456 | | |
432 | 457 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
305 | 305 | | |
306 | 306 | | |
307 | 307 | | |
308 | | - | |
| 308 | + | |
309 | 309 | | |
310 | 310 | | |
311 | | - | |
312 | | - | |
313 | | - | |
| 311 | + | |
| 312 | + | |
314 | 313 | | |
315 | | - | |
316 | | - | |
317 | | - | |
318 | | - | |
319 | | - | |
320 | | - | |
321 | | - | |
322 | | - | |
323 | | - | |
324 | | - | |
325 | | - | |
326 | | - | |
327 | | - | |
328 | | - | |
329 | | - | |
| 314 | + | |
330 | 315 | | |
331 | | - | |
332 | | - | |
333 | | - | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
334 | 320 | | |
335 | | - | |
336 | | - | |
337 | | - | |
338 | | - | |
339 | | - | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
340 | 326 | | |
341 | 327 | | |
342 | 328 | | |
| |||
0 commit comments