Closed lidiabressan closed 1 year ago
solution: i use a data_dict instead, but is it ok to get these level values if i print it in python?
'level': dballe.Level(21947,-1835950064,21947,None),
By reading the database, the level values are (101,None,None,None) or (201,None,None,None)
what is the difference between cursorx and cursorxDB? aren't they the same?
I have extended dballe.Data documentation quite a bit, it should be available on the next dballe rebuild together with some uses that were missing.
Here is the coming documentation but these two bits require a new dballe to work:
# This converts units automatically
data["B12101"] = data["12001"]
del data["B12001"]
CursorX and CursorXDB are effectively the same, only the *DB
versions contain database IDs like ana_id
, and the others do not
I'd leave this issue open at least until the new dballe is available and you can try it. Let me know if the explanations now are useful or if something still feels missing
I have added to the sources in d6b7e004b2e1ff4623f30ea25cd6a03dbd61abf1 a python HOWTO section, with an example on how to change the varcode of a value.
Questa issue è stata chiusa per inattività. Nel caso in cui sia un argomento ancora rilevante, si prega di riaprirla con una motivazione che tenga conto delle modifiche applicate nel corso degli anni al progetto.
how do I use dballe.Data object? I'm doing a query and I get a dballe.Data object. I want to add a new variable (ok) and delete an other one (I want to change the variable code). How do I change the object? What is the object? Just for visualization? In the documentation it is not clear (https://arpa-simc.github.io/dballe/python/dballe_types.html).
Thanks ciao Lidia