-
Notifications
You must be signed in to change notification settings - Fork 4
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
Check if input tile files exist before looking in data folder. #98
Conversation
I commented on the issue before seeing this PR, so let's continue the discussion on issue #97 to converge on the behavior we want, and then update this PR as needed to match. |
…s in desimodel, and warn if they both exist before choosing the one in desimodel.
I have a concern: Is this change going to apply to every file in |
And speaking of tile files, what's up with #95? |
Do not merge this yet- I am checking one other strange corner case. |
Thanks for the update @tskisner. Quoting you from issue #97:
@weaverba137 this PR only applies this logic to the tiles file, but I think it is a reasonable approach for any case where an I/O function allows the user to override an input file that is otherwise in $DESIMODEL/data. The basic logic could be moved into a desimodel.io utility function and then updated throughout, but I'm not going to block this PR for that. The new tiles file in #95 is waiting in the wings for final testing with desisurvey and mocks. Updates have been made for consistency with that tile file, but I don't think anyone has found the time to do the final vetting that all pieces work together before putting the new tiles file in place. |
Looks like I did not get my message here fast enough before merging. I'll try to fix the case I saw and push directly if it is a small fix. |
OK, nevermind. This branch was fine. The problem I saw was actually in fiberassign which was duplicating the behavior of this new code (i.e. looking up the default footprint file). So it was passing in the full path to the default footprint file and triggering a warning in this new desimodel code (since that full path pointed to a file with the same name as the default one- because the are the same file). |
This addresses the problem in #97