This commit prepares the repository to welcome the new script "roi_querier". Some small errors were also fixed. The main changes are:
The code that parses/transforms a query into a tree has been removed from scripts/tract_querier and made into a function:
search_file_and_create_query_body. It is located in the file tract_querier/init.py. This allows us to share the query-parsing
in both "roi_querier" and "tract_querier".
The function to parse the queries now returns a "file not found" error when the file.qry does not exists. This is much more
informative than the current "error in query file"
The test were giving some encoding-related errors with the files freesurfer_queries_bsf2016*. This have been fixed.
This commit prepares the repository to welcome the new script "roi_querier". Some small errors were also fixed. The main changes are:
The code that parses/transforms a query into a tree has been removed from scripts/tract_querier and made into a function: search_file_and_create_query_body. It is located in the file tract_querier/init.py. This allows us to share the query-parsing in both "roi_querier" and "tract_querier".
The function to parse the queries now returns a "file not found" error when the file.qry does not exists. This is much more informative than the current "error in query file"
The test were giving some encoding-related errors with the files freesurfer_queries_bsf2016*. This have been fixed.