Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Validate sample data" task—and model tests—fail on a SyntaxError in validation.py #1663

Closed
emilyanndavis opened this issue Oct 23, 2024 · 1 comment · Fixed by #1664
Closed
Assignees
Labels
bug Something isn't working

Comments

@emilyanndavis
Copy link
Member

After a fresh clone of the sample data (i.e., after deleting the data/invest-sample-data folder), make validate_sampledata is crashing on the following error:

File "invest/src/natcap/invest/validation.py", line 645
   patterns.append(column.replace('(', '\(').replace(')', '\)'))
                                       ^^^^
SyntaxError: invalid escape sequence '\('
@emilyanndavis emilyanndavis added the bug Something isn't working label Oct 23, 2024
@emilyanndavis
Copy link
Member Author

This is also affecting unit test suites that rely on validation.py (in other words, probably all of the model tests).

@emilyanndavis emilyanndavis changed the title Validate sample data task fails on a SyntaxError in validation.py "Validate sample data" task—and model tests—fail on a SyntaxError in validation.py Oct 23, 2024
@emilyanndavis emilyanndavis self-assigned this Oct 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant