Skip to content
/ ETACE Public
forked from svdhoog/FLAViz

FLAViz: Flexible Large-scale Agent Visualization Library

Notifications You must be signed in to change notification settings

svaksha/ETACE

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 

Repository files navigation

Data processing and analyzing scripts

For more detailed user help, see:

src/data_conversion_scripts/doc/usage_help.rst

Depends

Python core libraries

Pandas

matplotlib

h5py

pytables

scipi

numpy

Usage

The scripts in this repository are for converting data being produced by FLAME simulations. Default output is to XML files; these scripts convert XML to SQL and HDF5. Conversion from SQL to HDF5 is included as well.

  1. src/data_conversion_scripts
  • src/db_hdf5: conversion of SQL to h5
  • src/db_xml: conversion of SQL to XML
  • src/hdf_agentwise/merge_hdf_agentwise.py: conversion of h5 (per set, run) to h5 (per agent type)
  • src/xml_hdf5: conversion of XML to h5
  1. misc/replace_xml_functions
  • replace_xml_functions.py: Python script for replacing XML writeout functions in xml.c (FLAME-models)

This replacement script is useful for reducing the storage footprint of FLAME simulations. It allows the user to create a "shadow model.xml" file with a subset of the agent memory variables, resulting in fewer variables than the full model.xml file. The script replace_xml_functions.py takes as input the full-model xml.c file and the shadow-model xml.c file, and then replaces all functions called write__Agent() in the full-model xml.c file. The resulting full-model xml.c file can be compiled as usual with rest of the FLAME model C code. The resulting simulation will only output the subset of variables for each agent type.

About

FLAViz: Flexible Large-scale Agent Visualization Library

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 85.4%
  • Python 9.7%
  • TeX 4.9%