Skip to content

Commit

Permalink
fix: make tile2net import lazy
Browse files Browse the repository at this point in the history
  • Loading branch information
annehaley committed Dec 2, 2024
1 parent 9a2008e commit 5aa2ff2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion uvdat/core/tasks/simulations.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
from django_large_image import tilesource, utilities
import large_image
import shapely
from tile2net import Raster

from uvdat.core.tasks.networks import NODE_RECOVERY_MODES, get_network_graph, sort_graph_centrality

Expand Down Expand Up @@ -126,6 +125,8 @@ def recovery_scenario(simulation_result_id, node_failure_simulation_result, reco

@shared_task
def segment_curbs(simulation_result_id, imagery_layer):
from tile2net import Raster

from uvdat.core.models import Dataset, FileItem, RasterMapLayer, SimulationResult

result = SimulationResult.objects.get(id=simulation_result_id)
Expand Down

0 comments on commit 5aa2ff2

Please sign in to comment.