-
Notifications
You must be signed in to change notification settings - Fork 74
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
Require detector_db
in all cities
#851
Conversation
Looks good. The only test failing is known to fail and has nothing to do with this. I would like to have a test that verifies that all cities indeed require this argument and there is nothing else messing around. |
detector_db
a non-optional city argument
I've developed the test within This test can easily be included in the |
More tests are now failing on github which didn't fail locally, although I'm not entirely sure why. They all seem to be related to an attribute error: Rerunning these tests locally do not produce the same errors, it may be something to do with how I defined the relative import paths, but I'm not entirely sure. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't quite understand the error either, I will have to look at it more interactively. But this error wasn't there before the last commit, right?
You're correct, the error wasn't present before this commit. |
Change |
I've added the regexp to the test as well as the required changes and it seems to work as expected locally. Hopefully the same is true on github :) |
Hmm. Tests pass locally for me as well... This is bizarre. |
625e012
to
5dc5371
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this is the last of it. If the checks pass we will rewrite the commit history a bit and merge.
5dc5371
to
b542bd9
Compare
That should be it, hopefully it passes all the tests :) |
1f77532
to
6a13b2f
Compare
The history has been cleaned up with peras. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A necessary improvement towards NEXT100: not assuming a detector configuration. Great work.
detector_db
a non-optional city argumentdetector_db
in all cities
Just merged! Thanks @jwaiton for your first contribution to IC! Looking forward to seeing more of your nice work! |
As discussed in issue #850, the default city decorator provides
detector_db = 'new'
to each city if none is provided. This causes some issues (particularly with Beersheba) and so has been removed.In doing so, multiple cities now require
detector_db
to be within their config files to pass tests, and indexation_test.py has been modified to account for this change in city signature.Closes #850