holoviz-topics / EarthSim

Tools for working with and visualizing environmental simulations.
https://earthsim.holoviz.org
BSD 3-Clause "New" or "Revised" License
65 stars 21 forks source link

Getting dynamic values from annotator #294

Closed kcpevey closed 5 years ago

kcpevey commented 5 years ago

If I instantiate an annotator with some points and an additional point column:

import pandas as pd
from earthsim.annotators import PointAnnotator
sample_points = pd.DataFrame({
    'Longitude': [-10131185, -10131943, -10131766, -10131032],
    'Latitude':  [  3805587,   3803182,   3801073,   3799778],
    'Size':      [        5,        50,       500,      5000]})

annot = PointAnnotator(point_columns=['Size'], points=sample_points)
annot.pprint()
annot.panel()

Then modify one of the size values (making sure to press enter so that the value is set), then pull the data back out of the annotator, I don't get my new value.
annot.point_stream

Am I accessing the data correctly?

kcpevey commented 5 years ago

I'm fairly certain that this was related to another issue that has been resolved. Closing.