Open carobro opened 5 years ago
@HenFo @Anika2 @cherry13579 @atlanta11950 @lukasjah
Everything worked fine until:
python masterExtract.py Traceback (most recent call last): File "masterExtract.py", line 3, in <module> import extractGeoDataFromFolder as fext File "/home/jannis/Dokumente/geosoft/Geosoftware-II-AALLH/CLI Tools/extractGeoDataFromFolder.py", line 58 SyntaxError: Non-ASCII character '\xc3' in file /home/jannis/Dokumente/geosoft/Geosoftware-II-AALLH/CLI Tools/extractGeoDataFromFolder.py on line 58, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
After fixing that with editing the average-symbol in line 58 of extractGeoDataFromFolder.py, I got:
ImportError: No module named zope.interface
After pip install zope.interface --user
the software was running!
worked without problems
I understand:
I did not understand:
[x] use intention revealing names
getsimilarrecords(self): k?, i? masterExtract.py: res? extractGeoDataFromFolder: env? getBoundingBox.py: line 108: ds? 133: gt?
[x] functions should be small
These are the functions with more than 100 lines of code getsimilarrecords(self) 180loc getTimeExtent(name, path) 200loc getPolygon(name, path) 224loc getBoundingBox(name, path) 314loc
[x] do one thing per function
every case (file format) is in one function(getBoundingBox, getPolygon, getTimeExtent), why not exclude them?
[x] make sure code formatting is applied
[x] use exception rather than return codes
[x] no uncalled or unneeded procedures or any unreachable code
folder: einzelne Tools
possible checks: path
very comprehensive commenting in the following files: getBoundingBox.py, getsimilaritybbox(self, raw=False) commenting could be better in the following files: extractGeoDataFromFolder.py, getTimeExtent.py(geojsonCase), spatialSimilarity.py
generalSimilarity.py line36: Couldn't len(filename) be zero?
Prima @JaFro96 und Gruppe :one: - für das CLI-tool schon sehr hilfreich. Nur nochmal zu meinem Verständnis: den Service und die dazugehörigen Erweiterungen konntet ihr nicht ans Laufen bekommen?
@nuest Wenn damit der folgende Abschnitt aus der README gemeint ist, konnten wir diesen ans Laufen bekommen und die Endpunkte erfolgreich testen.
def getsimilarrecords(self)
def getsimilaritybbox(self, raw=False)
In your Browser, test our new requests by adding the following endpoints:
Hallo A²L²H,
könntet ihr vielleicht eine Installationsanleitung oder Ähnliches zu eurem Code schreiben? Ich weiß nicht ganz wo ist welche Dateien finde, welche Art von Tests ihr nutzt und welche Requirements ich so brauche :wink: Danke
Die Gruppe :one:
@carobro @JaFro96 @corneliazy @yhallowiegeht @hilal98