Preliminary 3 Results

Rerun simulation from Figure 4 in old paper


In [1]:
from extremefill2D.fextreme.tools import get_treant_df, get_by_tags, get_by_uuid, fcompose
import pandas
from extremefill2D.fextreme.plot import vega_plot_treant
from extremefill2D.fextreme import read_json
from toolz.curried import map, pipe
from pprint import pprint
from extremefill2D.fextreme.plot import vega_plot_treants

In [2]:
df = get_treant_df(['prelim3a'], path='../../data')

In [3]:
df_sort = df.sort(columns=['bulkSuppressor', 'appliedPotential'])
df_sort


/home/wd15/anaconda/envs/extreme/lib/python3.5/site-packages/ipykernel/__main__.py:1: FutureWarning: sort(columns=....) is deprecated, use sort_values(by=.....)
  if __name__ == '__main__':
Out[3]:
appliedPotential bulkSuppressor kMinus kPlus rBoundary tags uuid
0 -0.45 0.06 37900000.0 546.0 0.000028 [prelim3a] 8af1d0b8

In [4]:
df_to_treants = fcompose(
    lambda x: x.uuid,
    map(get_by_uuid(path='../../data')),
    list
)

In [5]:
out = vega_plot_treants(df_to_treants(df_sort))
out.display()