jmerle / imc-prosperity-2-visualizer

IMC Prosperity 2 algorithm visualizer
https://jmerle.github.io/imc-prosperity-2-visualizer/
MIT License
44 stars 22 forks source link

Visualizer cannot load logs with compressed data frames #3

Open stevenshinechen opened 7 months ago

stevenshinechen commented 7 months ago

When the dataframes used goes over a certain size, pickle compresses it: "lambdaLog": "[[81900,\"{\\\"py/object\\\": \\\"trader.TraderData\\\", \\\"prices\\\": {\\\"py/object\\\": \\\"pandas.core.frame.DataFrame\\\", \\\"comp\\\": true, \\\"values\\

This prevents the visualizer from recognising the logs.

I have tested it using the same code but with smaller dataframe size and if it does not compress, then the visualizer is able to recognise the logs

Algorithm runs fine on the IMC prosperity website, but just breaks the visualizer.

jmerle commented 7 months ago

I updated the logger in the prerequisites section about a week ago to truncate the trader_data and logs it prints, if you submit with the latest logger code displayed on the visualizer's home page this issue should disappear.

stevenshinechen commented 7 months ago

This error occurred after updating the logger with the truncation