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

File without changes
@@ -0,0 +1,6 @@
1
+ from django import template
2
+ register = template.Library()
3
+
4
+ @register.filter
5
+ def get(mapping, key):
6
+ return mapping.get(key, '')
@@ -0,0 +1,6 @@
1
+ from django import template
2
+ register = template.Library()
3
+
4
+ @register.filter
5
+ def nbi(string):
6
+ return string.split(" - ")[-1].lower()
@@ -7,7 +7,7 @@
7
7
  aria-controls="theme-settings"></button>
8
8
  <div class="d-flex justify-content-between align-items-center mb-3">
9
9
  <p class="m-0 mb-1 me-4 fs-7">Open source</p>
10
- <a class="github-button" href="https://github.com/claudioperez/opensees"
10
+ <a class="github-button" href="https://github.com/claudioperez/OpenSeesRT"
11
11
  data-color-scheme="no-preference: dark; light: light; dark: light;" data-icon="octicon-star"
12
12
  data-size="large" data-show-count="true"
13
13
  aria-label="Star opensees on GitHub">Star</a>
@@ -1,16 +1,16 @@
1
1
  {% extends "layouts/base.html" %}
2
-
2
+ {% load get %}
3
+ {% load nbi %}
3
4
  {% block title %} {{ asset.calid }} {% endblock %}
4
5
  {% block meta %}
5
- <meta name="description" content="Live-updating digital twin for health assessment of the {{ asset.name }} ({{ asset.calid }}).">
6
+ <meta name="description" content="{% if asset.id|divisibleby:2 %}Live-updating digital twin for health assessment of the {{ asset.name }} ({{ asset.calid }}).{% else %}Digital twin profile for real-time health monitoring of the {{ asset.name }} ({{ asset.calid }}) bridge{% endif %}">
6
7
  {% endblock %}
7
8
  {% block stylesheets %}
8
9
  {% if asset.rendering %}
9
10
  <!-- <meta name="viewport" content="width=device-width, initial-scale=1.0"> -->
10
- <!-- <script src="https://unpkg.com/three@0.152.0/build/three.min.js"></script> -->
11
11
  <script type="module" src="https://ajax.googleapis.com/ajax/libs/model-viewer/4.0.0/model-viewer.min.js"></script>
12
- <!-- <script type="module" src="https://unpkg.com/@google/model-viewer/dist/model-viewer.min.js"></script> -->
13
12
  {% endif %}
13
+ <script src="https://cdn.plot.ly/plotly-2.27.0.min.js" charset="utf-8"></script>
14
14
  <style>
15
15
  .crop {
16
16
  width: 100%; /* 200px;*/
@@ -107,8 +107,6 @@
107
107
  stroke: #61DAFB;
108
108
  }
109
109
  </style>
110
-
111
- <script src="https://cdn.plot.ly/plotly-2.27.0.min.js" charset="utf-8"></script>
112
110
  {% endblock stylesheets %}
113
111
 
114
112
  {% block content %}
@@ -126,7 +124,7 @@
126
124
  <li class="breadcrumb-item active"><code>{{ asset.calid }}</code></li>
127
125
  </ol>
128
126
  </nav>
129
- <h1 class="h4">{{ asset.id }} - {{ asset.name }}</h1>
127
+ <h1 class="h4"><samp>{{ asset.id }}</samp> / {{ asset.name }}</h1>
130
128
  </div>
131
129
  <div class="btn-toolbar mb-2 mb-md-0">
132
130
  <a role="button"
@@ -139,14 +137,46 @@
139
137
  </a>
140
138
  </div>
141
139
  </div>
142
- <!-- <h1 class="fs-2 lh-2 me-3"></h1> -->
143
- <!-- <span id="structureProfile" class="fs-2 lh-2 me-3">Structure Profile</span> -->
144
- <!--
145
- <div class="py-4 align-right">
146
- <a role="button" class="button btn btn-outline-primary"
147
- href="/inventory/{{ asset.calid }}/predictors/" class="me-1">Configure Predictors</a>
140
+ <div class="col-10">
141
+ <p>
142
+ {% if asset.id|divisibleby:3 %}
143
+ The {{asset.name}} is a structure in
144
+ {{ asset.nbi_data.NBI_BRIDGE|get:"Highway Agency District"|nbi }}
145
+ of the California inventory.
146
+ The structure was constructed in {{asset.nbi_data.NBI_BRIDGE|get:"Year Built"}}.
147
+ {% elif asset.id|divisibleby:4 %}
148
+ The {{asset.name}} was contructed in {{asset.nbi_data.NBI_BRIDGE|get:"Year Built"}}
149
+ and belongs to {{ asset.nbi_data.NBI_BRIDGE|get:"Highway Agency District"|nbi }}.
150
+ {% else %}
151
+ <em>{{asset.name}}</em> is a structure in
152
+ {{ asset.nbi_data.NBI_BRIDGE|get:"Highway Agency District"|nbi }}
153
+ of California that was built in {{asset.nbi_data.NBI_BRIDGE|get:"Year Built"}}.
154
+ {% endif %}
155
+ {% if asset.id|divisibleby:2 %}
156
+ The superstructure is in
157
+ <em>{{ asset.nbi_data.NBI_BRIDGE|get:"Superstructure Condition Rating"|nbi }}</em>.
158
+ {% else %}
159
+ The condition of the superstructure is classified as being in
160
+ <em>{{ asset.nbi_data.NBI_BRIDGE|get:"Superstructure Condition Rating"|nbi }}</em>.
161
+ {% endif %}
162
+ The structure has been configured with {{asset.predictors|length}} predictors.
163
+ </p>
164
+ <p>
165
+ {% if asset.cgs_data %}
166
+ {% if asset.id|divisibleby:3 %}The superstructure consists of {% else %}The superstructure's construction is {% endif %}
167
+ {{ asset.cgs_data.2|get:"Superstructure Type"|lower }}
168
+ {{asset.cgs_data.2|get:"Remarks"}}
169
+ More information about the structure instrumentation is availiable from
170
+ <a rel="nofollow noreferrer" href="https://www.strongmotioncenter.org/cgi-bin/CESMD/stationhtml.pl?stationID={{asset.cesmd}}&network=CGS">CESMD</a>.
171
+ {% else %}
172
+ {% if asset.id|divisibleby:3 %}
173
+ The structure has not been instrumented.
174
+ {% else %}
175
+ No {% if asset.id|divisibleby:2 %}direct{% endif %} sensor data is available for this structure.
176
+ {% endif %}
177
+ {% endif %}
178
+ </p>
148
179
  </div>
149
- -->
150
180
 
151
181
  {# BRIDGE RENDERING #}
152
182
  <details id="asset-sensors" open><summary><h3>Geometry</h3></summary>
@@ -228,7 +228,8 @@ td.left-text{vertical-align:middle}
228
228
  <div class="col-lg-5 order-lg-2 mb-5 mb-lg-0">
229
229
  <h2 class="h1 d-flex align-items-center"> Corridors<span
230
230
  class="badge-md mb-0 fs-6 badge ms-3 rounded-pill text-dark bg-secondary">New</span></h2>
231
- <p class="mb-4">Corridor-level health analysis and recovery planning has been implemented through collaborations at UC Berkeley and the California department of transportation.</p>
231
+ <p class="mb-4">Corridor-level health analysis and recovery planning has been implemented through collaborations at UC Berkeley and
232
+ the <a href="https://dot.ca.gov/">California department of transportation</a>.</p>
232
233
  <a href="https://dot.ca.gov/-/media/dot-media/programs/research-innovation-system-information/documents/research-notes/task3798-rns-05-24-a11y.pdf"
233
234
  target="_blank" class="btn btn-outline-gray-600 d-inline-flex align-items-center"><svg
234
235
  class="icon icon-xs me-2" fill="currentColor" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg">
@@ -248,17 +249,18 @@ td.left-text{vertical-align:middle}
248
249
  </section>
249
250
  <section class=tabs-section>
250
251
  <div class="container align-items-center">
251
- <h1 class=tabs-title>Ecosystem</h1>
252
+ <h2 class=tabs-title>Ecosystem</h2>
252
253
  <div class=uikit-tab-wrapper>
253
254
  <p>The <em>IRiE</em> Ecosystem</p>
254
255
  <table>
255
256
  <tr>
256
257
  <td style=text-align:center>
257
- <a href="https://github.com/claudioperez/opensees">
258
+ <a href="https://stairlab.berkeley.edu/software/opensees/">
258
259
  <img class="first-column-layout"
259
260
  src="{{ ASSETS_ROOT }}/content_images/brace/opensees.jpg" alt="opensees"></a></td>
260
261
  <td class=full-center-text><a href="https://pypi.org/project/opensees" >opensees</a></td>
261
- <td class=left-text>Direct and idiomatic bindings to <a href="https://github.com/claudioperez/OpenSeesRT" ><tt>OpenSeesRT</tt></a> kernel for finite element analysis.</td>
262
+ <td class=left-text>Direct and idiomatic bindings to <a href="https://github.com/claudioperez/OpenSeesRT" >
263
+ <samp>OpenSeesRT</samp></a> kernel for finite element analysis.</td>
262
264
  </tr>
263
265
  <tr>
264
266
  <td style=text-align:center>
@@ -295,6 +297,34 @@ td.left-text{vertical-align:middle}
295
297
  </div>
296
298
  </div>
297
299
  </div>
300
+
301
+
302
+ <section class=tabs-section>
303
+ <div class="container align-items-center">
304
+ <hr>
305
+ <!-- <h2 class=tabs-title>Sponsors</h2> -->
306
+ <table>
307
+ <tbody><tr>
308
+ <td>
309
+ <a href="https://dot.ca.gov/" rel="nofollow" class="clutterFree_existingDuplicate clutterFree_noIcon cf_div_theme_dark">
310
+ <img src="https://pypi-camo.freetls.fastly.net/7b2504fa154d6de2f70d6cac80839f75574f7530/68747470733a2f2f7261772e67697468756275736572636f6e74656e742e636f6d2f636c617564696f706572657a2f73646f662f6d61737465722f646f63732f6173736574732f43616c7472616e732e7376672e706e67" alt="Caltrans Logo" width="100">
311
+ </a>
312
+ </td>
313
+ <td>
314
+ <a href="https://peer.berkeley.edu">
315
+ <img src="https://pypi-camo.freetls.fastly.net/7b0fbea1983dc8e51a6877fc010c458e8e3f3f77/68747470733a2f2f7261772e67697468756275736572636f6e74656e742e636f6d2f636c617564696f706572657a2f73646f662f6d61737465722f646f63732f6173736574732f706565722d626c61636b2d3330302e706e67" alt="PEER Logo" width="100">
316
+ </a>
317
+ </td>
318
+ <td>
319
+ <a href="https://stairlab.berkeley.edu">
320
+ <img src="https://pypi-camo.freetls.fastly.net/f638ffd43bd94592280eb4e3b05451526341670b/68747470733a2f2f7261772e67697468756275736572636f6e74656e742e636f6d2f636c617564696f706572657a2f73646f662f6d61737465722f646f63732f6173736574732f73746169726c61622e737667" alt="STAIRlab Logo" width="100">
321
+ </a>
322
+ </td>
323
+ </tr>
324
+ </tbody>
325
+ </table>
326
+ </div>
327
+ </section>
298
328
  </main>
299
329
 
300
330
  <footer class="footer py-4 bg-primary text-white">
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: irie
3
- Version: 0.0.26
3
+ Version: 0.0.27
4
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
@@ -62,6 +62,9 @@ irie/apps/inventory/archive/arcGIS.py,sha256=vcfsy1be4edOXD1Z3rkUnq9QmCTol7dypdF
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
64
64
  irie/apps/inventory/migrations/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
65
+ irie/apps/inventory/templatetags/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
66
+ irie/apps/inventory/templatetags/get.py,sha256=ZVjFYv1uhjhcOQ8I5ukz7DuR6TXnbYuijPWKkgxacOM,134
67
+ irie/apps/inventory/templatetags/nbi.py,sha256=C251yAlF4ik1vSqHt5120maI1HcBlsPcUKoeAKQ44IY,139
65
68
  irie/apps/management/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
66
69
  irie/apps/management/commands/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
67
70
  irie/apps/networks/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -370,11 +373,11 @@ irie/apps/templates/includes/modal-report.html,sha256=iqD6g9R4R7G426wLVL46H5fufW
370
373
  irie/apps/templates/includes/navigation.html,sha256=6iGTqLbmbUqJb37VOWoSQvw_2LeiMIINI2v4Fm_GGZM,13658
371
374
  irie/apps/templates/includes/paginate.js,sha256=dAaL4uFQzEIbm61c_USEHlQLFkKc2ndJdR3bGzELtNc,3991
372
375
  irie/apps/templates/includes/scripts.html,sha256=1Up6xJJSTpdLTJp0tDAa3JubevvSlicOE4_j1vEOkek,1190
373
- irie/apps/templates/includes/settings-box.html,sha256=wexsLS4SMRyKci-r4L_LQ6QM27h4U291091NcGiTT3o,2486
376
+ irie/apps/templates/includes/settings-box.html,sha256=_YubYOyAJ8IldTgVlXP2wLLXpKpInp8hJ88FN6i6rmw,2488
374
377
  irie/apps/templates/includes/sidebar.html,sha256=uJnzXtcV7UvXscvEHe5z0wpLsFZk8B9mj1_Ye08NRbY,10972
375
378
  irie/apps/templates/inventory/asset-evals.html,sha256=KzbdJJ7ildMpfO4IQDuXqGBcPzUTlYpJ_Y3Wg4payVc,2700
376
379
  irie/apps/templates/inventory/asset-event-summary.html,sha256=r_Zl74thZlhUZiJYStycAhLFrq5DJ_YXJnmNG4yUHj0,50935
377
- irie/apps/templates/inventory/asset-profile.html,sha256=yd0h787XFIcIjiV-DmOhMV1aqmc6sVEoNZDYVbH6CiM,11754
380
+ irie/apps/templates/inventory/asset-profile.html,sha256=rczs_KbaclWlO5pGOIapD9uQmPxU0ei1aAeHXLyhDPY,13457
378
381
  irie/apps/templates/inventory/asset-table.html,sha256=hiPrumCigE_m1H6vSr8l-AoRosV8WnFuRg89cuzavvY,12129
379
382
  irie/apps/templates/inventory/bridge-dashboard.html,sha256=67zrDlih3LOi9xFVwPVZZkgRT3DO-lE_qRL7q8Uz9GY,45472
380
383
  irie/apps/templates/inventory/bridge.html,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
@@ -399,7 +402,7 @@ irie/apps/templates/prediction/hazus/history.js,sha256=blHRXzlEfMBCezPE-2dZCpt2r
399
402
  irie/apps/templates/site/about.html,sha256=5hS5taj3XF-F8z-uIn53ZFXVHVS4apLRMg39OyvMvRs,610
400
403
  irie/apps/templates/site/asset_map.html,sha256=rnTjeYMc8NESIo6Uuq8fgZ_xcKNuKdt4zcqoUTDI8Xg,387
401
404
  irie/apps/templates/site/components-forms.html,sha256=FKOiR-3e9iw-xOHeaP2RB3O2gP10R-Mt8wdXfb1rDBQ,13865
402
- irie/apps/templates/site/index.html,sha256=mW8oFbTzlPAEcPRXO4qXddH6D3xlw0xqc7FV_v_lNOE,15218
405
+ irie/apps/templates/site/index.html,sha256=1GFjgRa3ILGoUnA5iDs3N8XDqpfPoxebLYV0BXucRhM,16893
403
406
  irie/apps/templates/site/json-form.html,sha256=ZrRWy5xnGBOqG51b6mdVGI0Io5X1z47DTFB9wW6ZQYA,1785
404
407
  irie/apps/templates/site/page-403.html,sha256=caU6t3fsCJiAIuZvRQekK2UemdZSNxc3l80ceSz0mp0,1289
405
408
  irie/apps/templates/site/page-404-sidebar.html,sha256=krMA-iYHaJNfXSwY7H_epZycWLiIb_bBbuWTmqC4ca4,1581
@@ -440,8 +443,8 @@ irie/init/management/commands/init_corridors.py,sha256=EzLk0HUiFxlco-2u0rypewOc9
440
443
  irie/init/management/commands/init_predictors.py,sha256=jdD7rd8l2qxuUuR5GOYuHXp-ZQkAK477TefksBMdlOw,2362
441
444
  irie/rest/__main__.py,sha256=6Nf_-Rr9zGmMyp_wqCFDO7ls9QPnPd9UyUgN17rIGYw,3680
442
445
  irie/usgs/__main__.py,sha256=HiSvPn5IW5IqRiCk1qRRq5dCy3-7iISw7v1P_w2rLrk,5049
443
- irie-0.0.26.dist-info/METADATA,sha256=Mm4HauaybbxlleHbHcp2EnK3yZXdcr3bn-JInW6nOaQ,3242
444
- irie-0.0.26.dist-info/WHEEL,sha256=PZUExdf71Ui_so67QXpySuHtCi3-J3wvF4ORK6k_S8U,91
445
- irie-0.0.26.dist-info/entry_points.txt,sha256=A_3h9wPBGfxGQ78_MGa-nO6Z0foxOYeAnIE47jxEztg,44
446
- irie-0.0.26.dist-info/top_level.txt,sha256=zVCxi5E2nkISZPzKq8VEhWe_dGuPcefLYV1tYqQdwlY,5
447
- irie-0.0.26.dist-info/RECORD,,
446
+ irie-0.0.27.dist-info/METADATA,sha256=J03m5AhTVyAsOLVhCvJN5WaoYNDNfBnxS4P-nH0asKo,3242
447
+ irie-0.0.27.dist-info/WHEEL,sha256=PZUExdf71Ui_so67QXpySuHtCi3-J3wvF4ORK6k_S8U,91
448
+ irie-0.0.27.dist-info/entry_points.txt,sha256=A_3h9wPBGfxGQ78_MGa-nO6Z0foxOYeAnIE47jxEztg,44
449
+ irie-0.0.27.dist-info/top_level.txt,sha256=zVCxi5E2nkISZPzKq8VEhWe_dGuPcefLYV1tYqQdwlY,5
450
+ irie-0.0.27.dist-info/RECORD,,
File without changes