Skip to content

Commit

Permalink
Lint fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
annehaley committed Oct 26, 2023
1 parent 8c13bd1 commit 4b9a3b3
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion uvdat/core/models/dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ def get_network_gcc(self, exclude_nodes):
return get_dataset_network_gcc(self, exclude_nodes)

def get_map_layers(self):
from uvdat.core.models import VectorMapLayer, RasterMapLayer
from uvdat.core.models import RasterMapLayer, VectorMapLayer

ret = []
for vector_map_layer in VectorMapLayer.objects.filter(file_item__dataset=self):
Expand Down
1 change: 1 addition & 0 deletions uvdat/core/rest/dataset.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import json

from django.http import HttpResponse
from rest_framework.decorators import action
from rest_framework.viewsets import ModelViewSet
Expand Down
5 changes: 3 additions & 2 deletions uvdat/core/tasks/networks.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import json

from django.contrib.gis.geos import LineString, Point
import geopandas
import json
import networkx as nx
import numpy
import shapely
Expand Down Expand Up @@ -147,7 +148,7 @@ def create_network(vector_map_layer, network_options):
edge_set.loc[edge_set[connection_column] == unique_route]
.loc[:, edge_set.columns != 'geometry']
.iloc[0]
.fillna("")
.fillna('')
.to_dict()
)
)
Expand Down
2 changes: 1 addition & 1 deletion uvdat/core/tasks/regions.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import geopandas
import json
import secrets
from typing import List

from django.contrib.gis.db.models.aggregates import Union
from django.contrib.gis.geos import GEOSGeometry
from django.db import transaction
import geopandas

from uvdat.core.models import DerivedRegion, SourceRegion

Expand Down

0 comments on commit 4b9a3b3

Please sign in to comment.