svdhoog / FLAViz

FLAViz: Flexible Large-scale Agent Visualization Library
GNU General Public License v3.0
1 stars 4 forks source link

Conversion main.py to use DataFrame instead of Panel #45

Open svdhoog opened 3 years ago

svdhoog commented 3 years ago

Features

  1. Use df instead of Panel
  2. Filtering by slicing the index
  3. Update use of major and minor in config.yaml
svdhoog commented 3 years ago

2. Filtering by slicing the index

Problem:

Config.yaml refers to major, minor: now these should be:

Line 293:

filtered = d.iloc[(d.index.get_level_values('set').isin(param['set'])) & (d.index.get_level_values('run').isin(param['run'])) & (d.index.get_level_values('iter').isin(param['major'])) & (d.index.get_level_values('id').isin(param['minor']))][var_list].dropna().astype(float)
svdhoog commented 3 years ago

3. Update use of major and minor in config.yaml

TODO