Closed geordie666 closed 2 years ago
I should have clarified that it doesn't allow the phrase "mtl" to appear anywhere else in the path other than the very end where it is intended to appear by the standard directory template.
@jalasker good catch, though it appears that this problem pre-dates this particular PR.
Let's update the line 1417 you reference:
opsdir = os.path.dirname(mtltilefn).replace("mtl", "ops")
to only replace the trailing "mtl" and not all cases of "mtl" instead of requiring users to not have "mtl" in their higher level directory path.
@jalasker: I made a change to simplify your construction of the directory names. Also, the opsdir = os.path.dirname(mtltilefn).replace("mtl", "ops")
construction was used in one other place in the code other than line 1417, so I updated that too.
Can you check that my updated code still works with the alternate MTLs? If so, we can merge this PR and move on.
This works with the alternate MTLs. Merging pull request.
This PR updates the MTL loop to use
surveyops/ops/tiles-specstatus.ecsv
as the location of the tile file that containszdone
information for SV.We'd already updated the location of this tile file for the Main Survey, and were searching for a legacy copy of
tiles.csv
for SV. With this PR, we should no longer need to rely ontiles.csv
at all.