usnistgov / AusteniteCalculator

Software and GUI for uncertainty quantification of austenite phase fraction
Other
1 stars 0 forks source link

Json File error #38

Closed creuzige closed 1 year ago

creuzige commented 1 year ago

Trying to run commit 4823360, I get the following error when trying example 05. It seems like there's something up with the .json file. It seems like this might be an issue in how it's being saved or read (there's separate .load (dictionary) and .loads (string) commands; same with dump/dumps).

Traceback (most recent call last):
  File "/Users/creuzige/Documents/NIST_Research/GitHub/AusteniteCalculator/app/app.py", line 1170, in update_output
    crystal_data = json.loads(csv_string)
  File "/Users/creuzige/gsas2full/envs/gsas-AustCalc/lib/python3.7/json/__init__.py", line 341, in loads
    raise TypeError(f'the JSON object must be str, bytes or bytearray, '
TypeError: the JSON object must be str, bytes or bytearray, not dict

Also probably good to change the file creation notes to be .json instead of .csv.

creuzige commented 1 year ago

Used some test scripts to generate the json file properly. The loads and load functions have different things passed to it.