diff options
Diffstat (limited to 'parsers/survex.py')
-rw-r--r-- | parsers/survex.py | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/parsers/survex.py b/parsers/survex.py index 8bde946..91ce00a 100644 --- a/parsers/survex.py +++ b/parsers/survex.py @@ -24,17 +24,22 @@ It also scans the Loser repo for all the svx files, which it loads individually todo = """ - Lots to do to cut down on unnecessary .save() calls to avoid hitting the db so much. SHould -speed it up noticably. + speed it up noticably. + +- Obscure bug in the *team inheritance and rootblock initialization needs tracking down + +- Learn to use Django .select_related() and .prefetch_related() to speed things up + https://zerotobyte.com/how-to-use-django-select-related-and-prefetch-related/ - LoadSurvexFile() Creates a new current survexfile and valid .survexdirectory The survexblock passed-in is not necessarily the parent. FIX THIS. - When Olly implements LEG in the 'dump3d --legs' utility, then we can use that to get the length of -all the legs in a survex block instead of adding them up oursleves. Which means that we can -ignore all the Units and offset stuff, that troggle will work with survex files with backsights, -repeated readings from distox etc.. Not actually useful for pre 2022 survey data, but good future-proofing. -Also it will be a tiny bit more accurate as these leg lengths are after loop closure fixup. - + all the legs in a survex block instead of adding them up oursleves. Which means that we can + ignore all the Units and offset stuff, that troggle will work with survex files with backsights, + repeated readings from distox etc.. Not actually useful for pre 2022 survey data, + but good future-proofing. + Also it will be a tiny bit more accurate as these leg lengths are after loop closure fixup. """ survexblockroot = None survexomitsroot = None |