-
Notifications
You must be signed in to change notification settings - Fork 4
Open
Description
From running python check_data.py --help, I understand that checking solution files is not fully supported yet, but until recently this was working with some simple solution files constructed from the sandbox dataset. After some recent commits to the main branch, I get an error when running the following command:
$ python check_data.py -p S0/D1/C3S0N00003/scenario_002.json -s solution.json
...
Traceback (most recent call last):
File "C3DataUtilities/check_data.py", line 70, in <module>
validation.check_data(problem, args.solution, args.configuration, args.summary_csv, args.summary_json, args.data_errors, args.ignored_errors, args.solution_errors)
File "C3DataUtilities/datautilities/validation.py", line 776, in check_data
problem_data_array.set_from_data_model(data_model)
File "C3DataUtilities/datautilities/arraydata.py", line 12, in set_from_data_model
self.set_scalars(data)
File "C3DataUtilities/datautilities/arraydata.py", line 145, in set_scalars
self.c_e = float(data.network.violation_cost.e_vio_cost)
AttributeError: 'ViolationCostsParameters' object has no attribute 'e_vio_cost'This is with GO-3-data-model v1.0.0.
The error is that the input data file does not have an e_vio_cost attribute. It seems none of the input files in the sandbox dataset have this parameter, but recently this repo was updated to require it for checking solution files. Two possible solutions are:
- A new version of the sandbox dataset is released that contains this
e_vio_costparameter - A tag or release is added to this repo at the last commit that can evaluate solutions using the sandbox dataset input files until a new version of the dataset is released. In some brief testing, this appears to be commit 50c8e81
Let me know if I've missed something and there is some other way to run the evaluator using these input files.
Metadata
Metadata
Assignees
Labels
No labels