Skip to content

Commit

Permalink
Flake8 fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
volcan01010 committed Mar 6, 2024
1 parent ae7a67b commit a8cac8f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions app/borehole_map.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
def extract_geojson(filepath: Path) -> dict:
"""
Read an AGS4 file and extract geojson represenation of LOCA table and
metadata.
metadata.
"""
logger.info("Extracting geojson from %s", filepath.name)

Expand All @@ -35,7 +35,7 @@ def extract_geojson(filepath: Path) -> dict:
except KeyError:
msg = f"ERROR: LOCA group missing from {filepath}"
raise ValueError(msg)

# Add project columns and drop unwanted columns
try:
project: pd.DataFrame = tables['PROJ']
Expand Down Expand Up @@ -63,7 +63,7 @@ def extract_geojson(filepath: Path) -> dict:

# Reproject to WGS84
location = location.to_crs('EPSG:4326')

# Return dict representation of geojson
return json.loads(location.to_json())

Expand Down
2 changes: 1 addition & 1 deletion test/unit/test_borehole_map.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,4 +90,4 @@ def test_extract_geojson_real_files(ags_filepath):
# Creation of FeatureCollection ensures correct fields exist
feature_collection = FeatureCollection(**result)
assert isinstance(feature_collection, FeatureCollection)
"""
"""

0 comments on commit a8cac8f

Please sign in to comment.