irie 0.0.10__py3-none-any.whl → 0.0.11__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of irie might be problematic. Click here for more details.

@@ -134,6 +134,8 @@ def dashboard(request):
134
134
  except Exception as e:
135
135
  if "DEBUG" in os.environ and os.environ["DEBUG"]:
136
136
  raise e
137
+ else:
138
+ print(e)
137
139
  html_template = loader.get_template("site/page-500.html")
138
140
  return HttpResponse(html_template.render(context, request))
139
141
 
@@ -351,7 +353,7 @@ class AssetMap:
351
353
  if name is None:
352
354
  name = "Assets"
353
355
 
354
- if colors is not None:
356
+ if colors is not None and len(assets)>0 and len(colors) > 0:
355
357
  cm = folium.branca.colormap.LinearColormap(colors=["green", "yellow", "orange", "red"],
356
358
  vmin=0, vmax=max(colors.values()),
357
359
  caption=color_name)
@@ -359,6 +361,7 @@ class AssetMap:
359
361
  k: cm.rgb_hex_str(v) for k,v in colors.items()
360
362
  }
361
363
  else:
364
+ colors = None
362
365
  cm = None
363
366
 
364
367
  markers = self.add_bridges(assets, colors=colors)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: irie
3
- Version: 0.0.10
3
+ Version: 0.0.11
4
4
  Summary: Infrastructure Resilience Engine
5
5
  Author-email: wd <5018-006+wd@users.noreply.github.com>
6
6
  Project-URL: Repository, https://github.com/STAIRLab/irie
@@ -54,7 +54,7 @@ irie/apps/inventory/models.py,sha256=FWOjAk6jnYGRJGMNRnE9lbfUwKSQSSa8Is836Hczvu4
54
54
  irie/apps/inventory/tables.py,sha256=vZdPOcbN1ibuWXqLwbBUoQw9iavwa1GJ5fd83k8bu7Y,27874
55
55
  irie/apps/inventory/traffic.py,sha256=B3PHqn2Pm4AEdUZ_tuA16fuFruo2rm5waMBwLQyF-9g,4490337
56
56
  irie/apps/inventory/urls.py,sha256=mpmHjvDSHhC5xrEosbTH_h2bGWNJfslGcrt2mnUO40E,1019
57
- irie/apps/inventory/views.py,sha256=9frBu7X-BRXqKwa0OqOcrVzpA0kbX7A1GbZgO2dN5tc,14426
57
+ irie/apps/inventory/views.py,sha256=6eOmGo8_4smceZfwr36TJfOcBsMS58FFht1konleZKI,14528
58
58
  irie/apps/inventory/archive/arcGIS.py,sha256=vcfsy1be4edOXD1Z3rkUnq9QmCTol7dypdF816Q3B_w,34893
59
59
  irie/apps/inventory/migrations/0001_initial.py,sha256=PwTHv4Q3gqWFha--8Zp9kUOh-cYalB14jXj7RVJUVnw,1786
60
60
  irie/apps/inventory/migrations/0002_alter_asset_bridge_sensors_and_more.py,sha256=rPzWHkjg-ZCorVA_gv6MVb5F6LTLHcwlPwhBR1PxVr0,842
@@ -359,8 +359,8 @@ irie/init/management/commands/init_corridors.py,sha256=EzLk0HUiFxlco-2u0rypewOc9
359
359
  irie/init/management/commands/init_predictors.py,sha256=jdD7rd8l2qxuUuR5GOYuHXp-ZQkAK477TefksBMdlOw,2362
360
360
  irie/post/__main__.py,sha256=ACDm47LwhNoqMhuGnbYXDV-_lflnD8f1qOCdv2VTulU,2284
361
361
  irie/usgs/__main__.py,sha256=HiSvPn5IW5IqRiCk1qRRq5dCy3-7iISw7v1P_w2rLrk,5049
362
- irie-0.0.10.dist-info/METADATA,sha256=UOBMXraHHpkdmWv2d5Jt29Dt17U6DXGAsBAGlB-tsJ0,2507
363
- irie-0.0.10.dist-info/WHEEL,sha256=PZUExdf71Ui_so67QXpySuHtCi3-J3wvF4ORK6k_S8U,91
364
- irie-0.0.10.dist-info/entry_points.txt,sha256=A_3h9wPBGfxGQ78_MGa-nO6Z0foxOYeAnIE47jxEztg,44
365
- irie-0.0.10.dist-info/top_level.txt,sha256=zVCxi5E2nkISZPzKq8VEhWe_dGuPcefLYV1tYqQdwlY,5
366
- irie-0.0.10.dist-info/RECORD,,
362
+ irie-0.0.11.dist-info/METADATA,sha256=Z-TKKWCyzBIDPRTJk9j8YBUve7mDTsAiCC0L6PNXv6Y,2507
363
+ irie-0.0.11.dist-info/WHEEL,sha256=PZUExdf71Ui_so67QXpySuHtCi3-J3wvF4ORK6k_S8U,91
364
+ irie-0.0.11.dist-info/entry_points.txt,sha256=A_3h9wPBGfxGQ78_MGa-nO6Z0foxOYeAnIE47jxEztg,44
365
+ irie-0.0.11.dist-info/top_level.txt,sha256=zVCxi5E2nkISZPzKq8VEhWe_dGuPcefLYV1tYqQdwlY,5
366
+ irie-0.0.11.dist-info/RECORD,,
File without changes