Addresses #47 and #46.
The picks data in the table should be the same as the data in tops-storage and changes to one should update the other.
Currently, there is only one-way behavior: when picks are updated by clicking on the interactive plot, the changes are represented in the table. This is accomplished by the update_data_table() callback.
However, changes to the table (pick name, depth changes, pick deletions and additions) do not update tops-storage.
I tried solving this issue by adding table.data as an input to the update_pick_storage callback but this creates a "circular callback error" where changes to tops-storage trigger changes to table.data which triggers changes to tops-storage ... etc. I can't currently figure out how to get around that.
Addresses #47 and #46.
The picks data in the table should be the same as the data in
tops-storageand changes to one should update the other.Currently, there is only one-way behavior: when picks are updated by clicking on the interactive plot, the changes are represented in the table. This is accomplished by the
update_data_table()callback.However, changes to the table (pick name, depth changes, pick deletions and additions) do not update tops-storage.
I tried solving this issue by adding
table.dataas an input to theupdate_pick_storagecallback but this creates a "circular callback error" where changes totops-storagetrigger changes totable.datawhich triggers changes totops-storage... etc. I can't currently figure out how to get around that.