svdhoog / FLAViz

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

Bug: merge_hdf_agentwise.py using recursive folders #23

Closed svdhoog closed 6 years ago

svdhoog commented 6 years ago

By default merge_hdfagentwise.py traverses a folder hierarchy and processes files called setrun.h5 in each subfolder, and then produces the agent-wise h5 files (urostat.h5, Bank.h5 etc) in a parallel folder structure in the output folder. But due to a bug in parsing the folder names, possibly related to /, this malfunctions. See screenshot at end.

Input folder:

h5/combined

Output should be in:

h5_agentwise/combined

But instead, two folders are created:

h5_agentwise h5_agentwiseombined

And the output appears in:

h5_agentwiseombined [ommiting the /c from the path]

Probably just escaping the slash should help.

Note: the /c is not a special character, renaming the folder to something other like um also causes the error (I assumed /u is also not special either).

screenshot

0xfabi commented 6 years ago

The bug should be fixed now.

svdhoog commented 6 years ago

Tested correctly.