[Expo-tech] Interaction between troggle & wallets.py

Philip Sargent (Gmail) philip.sargent at gmail.com
Sat Jul 13 09:04:43 BST 2019


Renaming scanned images in expofiles/surveyscans/201n/whatever..
breaks troggle and the survey data.

Posted by Becka today on github:
https://github.com/CaveSurveyGIS/CUCCexposurveyissues/issues/46

Various scans from 2018 do not appear to have made it into the
surveyscans folder or have been renamed for whatever reason thus
breaking the paths that Tunnel uses to find them.

This is really irritating :-)

For example

Missing
"surveyscans/2018/2018#36/Scanned Document-3.jpg"

Renamed
"surveyscans/2018/2018#23/CatLitterPlan.jpg" was changed to
"surveyscans/2018/2018#23/plan-catlitter.jpg"

Philip Sargent said:

Yes, this was me.
It was incorrectly named when it was created. But changing the name
"to the correct name" breaks things so don't do it!

Handbook: "Name the scanned pages "notes1.jpg, notes2.jpg" etc. This
is important as a script detects whether these files exist and if you
name them something else it will hassle you unnecessarily."
http://expo.survex.com/handbook/survey/newcave.html#onlinew

It is clearly better that people get hassled unnecessarily than that
the survey data chain gets broken.

The script wallets.py (originally by Martin Green in 2017) needs to be
able to detect whether any "plan" and/or any "elev" scans have been
created. So however you label the scanned files, you need to get that
word into the filename. If you put that word ("plan" or "elev") at the
beginning of the filename the existing script will work. (I am working
on bespoke fixes for historical data.). In the very long term all this
could become part of troggle itself but we have no manpower to do
this.



More information about the Expo-tech mailing list