Back Midas Rome Roody Rootana
  Midas DAQ System  Not logged in ELOG logo
Entry  01 May 2023, Giovanni Mazzitelli, Bug Report, python issue with mathplot lib vs odb query Screenshot_2023-05-01_at_09.57.01.png
    Reply  01 May 2023, Ben Smith, Bug Report, python issue with mathplot lib vs odb query 
       Reply  01 May 2023, Giovanni Mazzitelli, Bug Report, python issue with mathplot lib vs odb query output.txt
          Reply  01 May 2023, Ben Smith, Bug Report, python issue with mathplot lib vs odb query 
             Reply  01 May 2023, Ben Smith, Bug Report, python issue with mathplot lib vs odb query 
                Reply  01 May 2023, Giovanni Mazzitelli, Bug Report, python issue with mathplot lib vs odb query 
Message ID: 2498     Entry time: 01 May 2023     In reply to: 2497     Reply to this: 2499
Author: Ben Smith 
Topic: Bug Report 
Subject: python issue with mathplot lib vs odb query 
> Looks like a localisation issue. Your floats are formatted as "6,6584e+01", whereas the JSON decoder expects "6.6584e+01".

This should be fixed in the latest commit to the midas develop branch. The JSON specification requires a dot for the decimal separator, so we must ignore the user's locale when formatting floats/doubles for JSON.

I've tested the fix on my machine by manually changing the locale, and also added an automated test in the python directory.
ELOG V3.1.4-2e1708b5