victorgabr / pps

PyPlanScoring codebase that was used on 2017 and 2018 - RT Plan Competition
https://radiationknowledge.org/
BSD 3-Clause "New" or "Revised" License
6 stars 3 forks source link

ValueError: Not a valid Mayo format #5

Open rameez707 opened 4 years ago

rameez707 commented 4 years ago

ValueError: Not a valid Mayo format If Scoring_Criteria contains

Structure Name | Query | Metric Type PGTV | GlobalMax | bool

victorgabr commented 4 years ago

There is already a code to parse inputs as strigs:

Query

There is an example on the PPS docs:

3.1.4 DVH metrics

ValueError: Not a valid Mayo format is raised when the user does not pass a valid query:

rameez707 commented 4 years ago

If I run PPS - 2019 exe and pass Query value GlobalMax it returns result

PGTV | GlobalMax | bool | 1.00 | 0.00 | 2.00 | TRUE | 2.00 | 100.00%

but if i pass same in pps from git it troughs error ValueError: Not a valid Mayo format at if not self.is_valid(query): raise ValueError('Not a valid Mayo format') line no 154