The template uploading function (nipyapi.templates.upload_template) checks for a previously existing template with the same name but returns an error even when the template name is not an exact match.
This happens because the nipyapi.templates.get_template function is greedy by default.
Description
The template uploading function (nipyapi.templates.upload_template) checks for a previously existing template with the same name but returns an error even when the template name is not an exact match.
This happens because the nipyapi.templates.get_template function is greedy by default.
Making it non-greedy by default would solve this.