irie 0.0.20__py3-none-any.whl → 0.0.21__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.

@@ -125,7 +125,7 @@ def dashboard(request):
125
125
  asset.id: max(event[1].pga for event in context["recent_evaluations"] if event[1].cesmd == asset.cesmd)
126
126
  for asset in assets
127
127
  }
128
-
128
+
129
129
  context["asset_map"] = AssetMap(assets, colors=colors, color_name="Peak Station Accel.").get_html()
130
130
  context["calid"] = {b.cesmd: b.calid for b in assets}
131
131
 
@@ -192,7 +192,7 @@ def asset_profile(request, calid):
192
192
 
193
193
  # Compute Hazus fragility probabilities and curve
194
194
  try:
195
- hazus_results = hazus_fragility(asset.nbi_data, generate_plot=False, return_data=True)
195
+ hazus_results = hazus_fragility(asset.nbi_data)
196
196
 
197
197
  # Add fragility probabilities and plot to the context
198
198
  context["hazus"] = {
@@ -59,20 +59,32 @@
59
59
  </tbody>
60
60
  </table>
61
61
 
62
- <div class="card-footer px-3 border-0 d-flex flex-column flex-lg-row align-items-center justify-content-between">
63
- <nav aria-label="Page navigation example">
64
- <ul class="pagination mb-0">
65
- <li class="page-item">
66
- <a class="page-link disabled" href="#">Previous</a>
67
- </li>
68
- <li class="page-item disabled">
69
- <a class="page-link" href="#">1</a>
70
- </li>
71
- <li class="page-item disabled">
72
- <a class="page-link" href="#">Next</a>
73
- </li>
74
- </ul>
75
- </nav>
76
- <div class="fw-normal small mt-4 mt-lg-0">Showing <b>{{ evaluations|length }}</b> out of <b>{{ evaluations|length }}</b> entries</div>
77
- </div>
62
+ <div class="card-footer px-3 border-0 d-flex flex-column flex-lg-row align-items-center justify-content-between">
63
+ <nav aria-label="Page navigation example">
64
+ <ul class="pagination mb-0">
65
+ <li class="page-item {% if not evaluations.has_previous %}disabled{% endif %}">
66
+ {% if evaluations.has_previous %}
67
+ <a class="page-link" href="?page={{ evaluations.previous_page_number }}&{{ page_query }}">Previous</a>
68
+ {% else %}
69
+ <a class="page-link disabled" href="#">Previous</a>
70
+ {% endif %}
71
+ </li>
72
+ {% for page in evaluations.paginator.page_range %}
73
+ {% if page <= evaluations.number|add:3 and page >= evaluations.number|add:-3 %}
74
+ <li class="page-item {% if page == evaluations.number %}active{% endif %}">
75
+ <a class="page-link" href="?page={{ page }}&{{ page_query }}">{{ page }}</a>
76
+ </li>
77
+ {% endif %}
78
+ {% endfor %}
79
+ <li class="page-item {% if not evaluations.has_next %}disabled{% endif %}">
80
+ {% if evaluations.has_next %}
81
+ <a class="page-link" href="?page={{ evaluations.next_page_number }}&{{ page_query }}">Next</a>
82
+ {% else %}
83
+ <a class="page-link disabled" href="#">Next</a>
84
+ {% endif %}
85
+ </li>
86
+ </ul>
87
+ </nav>
88
+ <div class="fw-normal small mt-4 mt-lg-0">Showing <b>{{ evaluations|length }}</b> out of <b>{{ evaluations.paginator.count }}</b> entries</div>
89
+ </div>
78
90
  </div>
@@ -242,24 +242,26 @@
242
242
  <div class="col-8 mb-4">
243
243
  {% for table in tables %}
244
244
  <div class="card bg-white-100 border-0 shadow table-wrapper table-responsive">
245
- <div class="card card-body shadow table-wrapper table-responsive">
246
- <table class="table table-hover" style="display: block;">
247
- <caption>{{asset.calid}} Table {{forloop.counter}}</caption>
248
- {# <thead><tr><th>Key</th> <th>Value</th></tr></thead> #}
249
- <tbody>
250
- {# <tr><td><b>CESMD</b></td><td>{{ asset_data.cesmd }}</td></tr> #}
251
- {% for key,val in table.items %}
252
- {% if val %}
253
- <tr>
254
- <th scope="row" style="text-align:left; width:40%;">{{ key }}</th>
255
- <!-- The inline style here ensures that
256
- there are line breaks in rows with long text -->
257
- <td style="width: 60%; white-space: normal !important;word-wrap: break-word;">{{ val }}</td>
258
- </tr>
259
- {% endif %}
260
- {% endfor %}
261
- </tbody>
262
- </table>
245
+ <div class="card">
246
+ <div class="card-body shadow table-wrapper table-responsive">
247
+ <table class="table table-hover" style="display: block;">
248
+ <caption>{{asset.calid}} Table {{forloop.counter}}</caption>
249
+ {# <thead><tr><th>Key</th> <th>Value</th></tr></thead> #}
250
+ <tbody>
251
+ {# <tr><td><b>CESMD</b></td><td>{{ asset_data.cesmd }}</td></tr> #}
252
+ {% for key,val in table.items %}
253
+ {% if val %}
254
+ <tr>
255
+ <th scope="row" style="text-align:left; width:40%;">{{ key }}</th>
256
+ <!-- The inline style here ensures that
257
+ there are line breaks in rows with long text -->
258
+ <td style="width: 60%; white-space: normal !important;word-wrap: break-word;">{{ val }}</td>
259
+ </tr>
260
+ {% endif %}
261
+ {% endfor %}
262
+ </tbody>
263
+ </table>
264
+ </div>
263
265
  </div>
264
266
  </div>
265
267
  <br>
@@ -0,0 +1,8 @@
1
+ Sitemap: https://structures.live/sitemap.xml
2
+
3
+ User-Agent: *
4
+ Disallow: /inventory/*/*/
5
+
6
+ User-agent: GPTBot
7
+ Disallow: /
8
+
irie/core/urls.py CHANGED
@@ -11,6 +11,7 @@ from django.conf import settings
11
11
  from django.conf.urls.static import static
12
12
  from django.contrib import admin
13
13
  from django.urls import path, include
14
+ from django.views.generic.base import TemplateView
14
15
 
15
16
  admin.site.site_header = "IRiE"
16
17
  admin.site.index_title = "IRiE"
@@ -18,6 +19,11 @@ admin.site.site_title = "IRiE"
18
19
 
19
20
  urlpatterns = [
20
21
  path('admin/', admin.site.urls),
22
+ path(
23
+ "robots.txt",
24
+ TemplateView.as_view(template_name="site/robots.txt", content_type="text/plain"),
25
+ ),
26
+
21
27
 
22
28
  # Authentication routes
23
29
  path("", include("irie.apps.authentication.urls")),
@@ -1,7 +1,7 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: irie
3
- Version: 0.0.20
4
- Summary: Infrastructure Resilience Engine
3
+ Version: 0.0.21
4
+ Summary: An infrastructure resilience engine
5
5
  Author-email: "Claudio M. Perez" <50180406+claudioperez@users.noreply.github.com>
6
6
  Project-URL: Repository, https://github.com/STAIRLab
7
7
  Project-URL: Documentation, https://stairlab.berkeley.edu/software/irie/
@@ -57,7 +57,7 @@ irie/apps/inventory/sitemaps.py,sha256=yc3UMVuGWA8vC9zHseY1jfkeRw5_jTYjy-UUcGtGw
57
57
  irie/apps/inventory/tables.py,sha256=vZdPOcbN1ibuWXqLwbBUoQw9iavwa1GJ5fd83k8bu7Y,27874
58
58
  irie/apps/inventory/traffic.py,sha256=B3PHqn2Pm4AEdUZ_tuA16fuFruo2rm5waMBwLQyF-9g,4490337
59
59
  irie/apps/inventory/urls.py,sha256=mpmHjvDSHhC5xrEosbTH_h2bGWNJfslGcrt2mnUO40E,1019
60
- irie/apps/inventory/views.py,sha256=nfFG1AsCSuZPtMcCxKYxrbrQqK27iOExz1RhSSAQCRc,14596
60
+ irie/apps/inventory/views.py,sha256=xOFxT4Te6zYEFCJNKCsJF4YDk5do-HcfWpBPMvuBBsI,14549
61
61
  irie/apps/inventory/archive/arcGIS.py,sha256=vcfsy1be4edOXD1Z3rkUnq9QmCTol7dypdF816Q3B_w,34893
62
62
  irie/apps/inventory/migrations/0001_initial.py,sha256=PwTHv4Q3gqWFha--8Zp9kUOh-cYalB14jXj7RVJUVnw,1786
63
63
  irie/apps/inventory/migrations/0002_alter_asset_bridge_sensors_and_more.py,sha256=rPzWHkjg-ZCorVA_gv6MVb5F6LTLHcwlPwhBR1PxVr0,842
@@ -363,7 +363,7 @@ irie/apps/templates/events/events.html,sha256=0PIELQsPVj1iv4moWKEOMfp4zbcSfkj5BC
363
363
  irie/apps/templates/events/login.html,sha256=00rGrQsHXwQXbh2qF7WzEgIA4LjcbvcefALmD9EQCRg,550
364
364
  irie/apps/templates/events/react_and_bootstrap.html,sha256=mwxjUMD5OMEI1JMNcWYxz7Ju5rq5R2spf6y_G7mYAUs,802
365
365
  irie/apps/templates/home/asset.html,sha256=nqzMy59L2yDalJbbK4j-MCFcBtXTUSMTkqkGwmlSriU,22323
366
- irie/apps/templates/includes/asset-event-table.html,sha256=mcPCKeCJ8_e-xPWACHBy4edGMYXSSUYNhtMtdeptyTw,3327
366
+ irie/apps/templates/includes/asset-event-table.html,sha256=ovAsKYVHKXRkS7znaDd9QzuaFG6M_2CY7yanYnC8k2w,4243
367
367
  irie/apps/templates/includes/footer.html,sha256=uCZVHypr9ZXgU3SsQvOn3U_SuzCGubm6E1cIISvKlX0,617
368
368
  irie/apps/templates/includes/modal-report.html,sha256=iqD6g9R4R7G426wLVL46H5fufWYAA3K8Acav9b0DQoU,3592
369
369
  irie/apps/templates/includes/navigation.html,sha256=6iGTqLbmbUqJb37VOWoSQvw_2LeiMIINI2v4Fm_GGZM,13658
@@ -372,7 +372,7 @@ irie/apps/templates/includes/scripts.html,sha256=1Up6xJJSTpdLTJp0tDAa3JubevvSlic
372
372
  irie/apps/templates/includes/settings-box.html,sha256=wexsLS4SMRyKci-r4L_LQ6QM27h4U291091NcGiTT3o,2486
373
373
  irie/apps/templates/includes/sidebar.html,sha256=uJnzXtcV7UvXscvEHe5z0wpLsFZk8B9mj1_Ye08NRbY,10972
374
374
  irie/apps/templates/inventory/asset-event-summary.html,sha256=BmLAFtfNDi98aZIu5WbkPMda-QZgoWhssN6l3e2QLgE,50672
375
- irie/apps/templates/inventory/asset-profile.html,sha256=0j8JdAu8fKGOnGjkBb0pKopRkaqQIKzI1dek6oxCx38,11208
375
+ irie/apps/templates/inventory/asset-profile.html,sha256=lVH983PV9EIgugsfqb8Y94JrPMmD84OFX9twUNdjXno,11287
376
376
  irie/apps/templates/inventory/asset-table.html,sha256=hiPrumCigE_m1H6vSr8l-AoRosV8WnFuRg89cuzavvY,12129
377
377
  irie/apps/templates/inventory/bridge-dashboard.html,sha256=67zrDlih3LOi9xFVwPVZZkgRT3DO-lE_qRL7q8Uz9GY,45472
378
378
  irie/apps/templates/inventory/bridge.html,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
@@ -408,6 +408,7 @@ irie/apps/templates/site/page-lock.html,sha256=ZVn1xyhku1jROxozMyPwMCqS7EsRwG7Z6
408
408
  irie/apps/templates/site/page-reset-password.html,sha256=zr2hSaWshUfWanI07vgwfxLR28APCTwhkWHd5-cr-v8,4239
409
409
  irie/apps/templates/site/page-sign-in.html,sha256=Ss0xdxhcE0fDzBbxG4NEYFm3XVkfV9knmZWWInU6gq8,9059
410
410
  irie/apps/templates/site/page-sign-up.html,sha256=Tft2RQqxzPLyeAWAYoTQnYePs4ym_0bjPuW2p3DbGQ0,9600
411
+ irie/apps/templates/site/robots.txt,sha256=FAwdlPB3oATEIu1W2sp-j6PmcB2YU3-ouCRvN4tRmn8,119
411
412
  irie/apps/templates/site/settings.html,sha256=R86LHk7zv3PcZlZoH4iVmvpPc7iGLR8kwAPvsUNF2lU,13423
412
413
  irie/apps/templates/site/tables-bootstrap-tables.html,sha256=NDeyVoNLkgFpvqOWMRBQ9uLORirhz-O-LSXFfT2mv88,26683
413
414
  irie/apps/templates/site/transactions.html,sha256=-heynHR8PTt_C4P3IWmYG_VE1aGH68ICLLnbfbOuwRs,24116
@@ -415,7 +416,7 @@ irie/apps/templates/site/unused-dashboard-cards.html,sha256=DDNWrnIf4o0wj06WYH8Y
415
416
  irie/core/__init__.py,sha256=wkkNngGxgYcCM745-rlvP6ynrI0b0QN3aWmLWDsR8zU,230
416
417
  irie/core/asgi.py,sha256=3lVQKFRA4bznM2mWu5Cv24a5H9pfb6YU07q-I_TN0DM,395
417
418
  irie/core/settings.py,sha256=9jqn02olEya6O2p3pABLFhmHRwl_U05sOAtluo6y1Rg,6342
418
- irie/core/urls.py,sha256=H_oIilxAeV6C5W3TY_-oYwkbHiOnHdrRGweBDnOe04k,1279
419
+ irie/core/urls.py,sha256=gxPSV6OhMGYm2O2uRJjFSTOjcIKSXuMeEyAmQcUctLU,1460
419
420
  irie/core/wsgi.py,sha256=8dxK789vOoRWm0IatEhNqMgZhov9TlspjM6hOUbjg24,395
420
421
  irie/init/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
421
422
  irie/init/__main__.py,sha256=EMfVc-Q-IPi1uBU3vOkoP4_-JMWpK1dFnqu3prfXsDM,589
@@ -437,8 +438,8 @@ irie/init/management/commands/init_corridors.py,sha256=EzLk0HUiFxlco-2u0rypewOc9
437
438
  irie/init/management/commands/init_predictors.py,sha256=jdD7rd8l2qxuUuR5GOYuHXp-ZQkAK477TefksBMdlOw,2362
438
439
  irie/rest/__main__.py,sha256=6Nf_-Rr9zGmMyp_wqCFDO7ls9QPnPd9UyUgN17rIGYw,3680
439
440
  irie/usgs/__main__.py,sha256=HiSvPn5IW5IqRiCk1qRRq5dCy3-7iISw7v1P_w2rLrk,5049
440
- irie-0.0.20.dist-info/METADATA,sha256=5hxwSV5Sr0rE1jc33o6wBorklugHZZmr399OcdrS2DA,3244
441
- irie-0.0.20.dist-info/WHEEL,sha256=PZUExdf71Ui_so67QXpySuHtCi3-J3wvF4ORK6k_S8U,91
442
- irie-0.0.20.dist-info/entry_points.txt,sha256=A_3h9wPBGfxGQ78_MGa-nO6Z0foxOYeAnIE47jxEztg,44
443
- irie-0.0.20.dist-info/top_level.txt,sha256=zVCxi5E2nkISZPzKq8VEhWe_dGuPcefLYV1tYqQdwlY,5
444
- irie-0.0.20.dist-info/RECORD,,
441
+ irie-0.0.21.dist-info/METADATA,sha256=zcQb6vRAYraG6jkwTZtPjklZbNUbTXwFsLwXQNH3eBI,3247
442
+ irie-0.0.21.dist-info/WHEEL,sha256=PZUExdf71Ui_so67QXpySuHtCi3-J3wvF4ORK6k_S8U,91
443
+ irie-0.0.21.dist-info/entry_points.txt,sha256=A_3h9wPBGfxGQ78_MGa-nO6Z0foxOYeAnIE47jxEztg,44
444
+ irie-0.0.21.dist-info/top_level.txt,sha256=zVCxi5E2nkISZPzKq8VEhWe_dGuPcefLYV1tYqQdwlY,5
445
+ irie-0.0.21.dist-info/RECORD,,
File without changes