irie 0.0.58__py3-none-any.whl → 0.0.59__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.
- irie/apps/inventory/migrations/0009_datum_angle_x_datum_angle_y.py +23 -0
- irie/apps/inventory/views.py +3 -3
- irie/apps/prediction/migrations/0007_remove_sensorassignment_orient_x_and_more.py +25 -0
- irie/apps/templates/inventory/create-datum.html +44 -0
- irie/apps/templates/inventory/sensor-upload.html +22 -22
- irie/apps/templates/prediction/create-model.html +1 -9
- {irie-0.0.58.dist-info → irie-0.0.59.dist-info}/METADATA +2 -2
- {irie-0.0.58.dist-info → irie-0.0.59.dist-info}/RECORD +11 -8
- {irie-0.0.58.dist-info → irie-0.0.59.dist-info}/WHEEL +0 -0
- {irie-0.0.58.dist-info → irie-0.0.59.dist-info}/entry_points.txt +0 -0
- {irie-0.0.58.dist-info → irie-0.0.59.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# Generated by Django 5.1.2 on 2025-07-31 05:48
|
|
2
|
+
|
|
3
|
+
from django.db import migrations, models
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
class Migration(migrations.Migration):
|
|
7
|
+
|
|
8
|
+
dependencies = [
|
|
9
|
+
('irie_apps_inventory', '0008_alter_sensor_dx_alter_sensor_dy_alter_sensor_dz_and_more'),
|
|
10
|
+
]
|
|
11
|
+
|
|
12
|
+
operations = [
|
|
13
|
+
migrations.AddField(
|
|
14
|
+
model_name='datum',
|
|
15
|
+
name='angle_x',
|
|
16
|
+
field=models.DecimalField(blank=True, decimal_places=2, default=0.0, max_digits=10, null=True),
|
|
17
|
+
),
|
|
18
|
+
migrations.AddField(
|
|
19
|
+
model_name='datum',
|
|
20
|
+
name='angle_y',
|
|
21
|
+
field=models.DecimalField(blank=True, decimal_places=2, default=0.0, max_digits=10, null=True),
|
|
22
|
+
),
|
|
23
|
+
]
|
irie/apps/inventory/views.py
CHANGED
|
@@ -400,13 +400,13 @@ def asset_sensors(request, calid):
|
|
|
400
400
|
|
|
401
401
|
# General Context
|
|
402
402
|
context = {
|
|
403
|
-
"
|
|
404
|
-
"segment": "assets",
|
|
405
|
-
"groups": SensorGroup.objects.filter(asset=asset)
|
|
403
|
+
"segment": "assets"
|
|
406
404
|
}
|
|
407
405
|
|
|
408
406
|
# Database
|
|
409
407
|
asset = get_object_or_404(Asset, calid=calid)
|
|
408
|
+
context["asset"] = asset
|
|
409
|
+
context["groups"] = SensorGroup.objects.filter(asset=asset)
|
|
410
410
|
|
|
411
411
|
return HttpResponse(html_template.render(context, request))
|
|
412
412
|
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# Generated by Django 5.1.2 on 2025-07-31 05:48
|
|
2
|
+
|
|
3
|
+
from django.db import migrations
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
class Migration(migrations.Migration):
|
|
7
|
+
|
|
8
|
+
dependencies = [
|
|
9
|
+
('apps_prediction', '0006_remove_sensorassignment_show_x_and_more'),
|
|
10
|
+
]
|
|
11
|
+
|
|
12
|
+
operations = [
|
|
13
|
+
migrations.RemoveField(
|
|
14
|
+
model_name='sensorassignment',
|
|
15
|
+
name='orient_x',
|
|
16
|
+
),
|
|
17
|
+
migrations.RemoveField(
|
|
18
|
+
model_name='sensorassignment',
|
|
19
|
+
name='orient_y',
|
|
20
|
+
),
|
|
21
|
+
migrations.RemoveField(
|
|
22
|
+
model_name='sensorassignment',
|
|
23
|
+
name='orient_z',
|
|
24
|
+
),
|
|
25
|
+
]
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
<form method="post">
|
|
2
|
+
{% csrf_token %}
|
|
3
|
+
|
|
4
|
+
<fieldset class="mb-4">
|
|
5
|
+
<legend>Datum</legend>
|
|
6
|
+
{{ group_form.as_p }}
|
|
7
|
+
<div id="datum-info" class="mb-4 p-2 border rounded bg-light" style="display: none;">
|
|
8
|
+
<strong>Datum Location (x;y;z):</strong> <span id="datum-location">_, _, _</span> <br>
|
|
9
|
+
<strong>Datum Orientation (dx;dy;dz):</strong> <span id="datum-orientation">_, _, _</span>
|
|
10
|
+
</div>
|
|
11
|
+
</fieldset>
|
|
12
|
+
|
|
13
|
+
<fieldset>
|
|
14
|
+
<legend>New Datum</legend>
|
|
15
|
+
<div id="formset-container" class="container">
|
|
16
|
+
<div class="row">
|
|
17
|
+
<div class="col-md-12 d-flex align-items-center mb-3">
|
|
18
|
+
<div class="input-group">
|
|
19
|
+
<span class="input-group-text col-md-5 text-gray">Angle x</span>
|
|
20
|
+
<input id="input-datum-angle-x"
|
|
21
|
+
type="number"
|
|
22
|
+
step="any"
|
|
23
|
+
name="angle x"
|
|
24
|
+
value="{{ form.dx.value|default_if_none:'' }}"
|
|
25
|
+
class="form-control col-md-8 text-gray" required></input>
|
|
26
|
+
</div>
|
|
27
|
+
<div class="input-group">
|
|
28
|
+
<span class="input-group-text col-md-5 text-gray">Angle y</span>
|
|
29
|
+
<input id="input-datum-angle-y"
|
|
30
|
+
type="number"
|
|
31
|
+
step="any"
|
|
32
|
+
name="angle y"
|
|
33
|
+
value="{{ form.dy.value|default_if_none:'' }}"
|
|
34
|
+
class="form-control col-md-8 text-gray" required></input>
|
|
35
|
+
</div>
|
|
36
|
+
</div>
|
|
37
|
+
</div>
|
|
38
|
+
<button class="remove-form btn btn-danger btn-sm ml-2">Remove</button>
|
|
39
|
+
</div>
|
|
40
|
+
<button id="add-datum" class="btn btn-sm button btn-outline-primary mb-3">Add Datum</button>
|
|
41
|
+
</fieldset>
|
|
42
|
+
<button type="button" id="plot-btn" class="btn btn-info btn-sm mb-3">Plot</button>
|
|
43
|
+
<button type="submit" class="btn btn-sm button btn-success mb-3">Save</button>
|
|
44
|
+
</form>
|
|
@@ -240,28 +240,28 @@ document.addEventListener("DOMContentLoaded", () => {
|
|
|
240
240
|
});
|
|
241
241
|
</script>
|
|
242
242
|
<script>
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
243
|
+
document.addEventListener("DOMContentLoaded", function () {
|
|
244
|
+
const datumSelect = document.getElementById("id_datum");
|
|
245
|
+
const datumInfoDiv = document.getElementById("datum-info");
|
|
246
|
+
const locationSpan = document.getElementById("datum-location");
|
|
247
|
+
const orientationSpan = document.getElementById("datum-orientation");
|
|
248
|
+
|
|
249
|
+
// Store datum data from Django
|
|
250
|
+
const datums = {{ datums|safe }};
|
|
251
|
+
|
|
252
|
+
datumSelect.addEventListener("change", function () {
|
|
253
|
+
const selectedDatumId = this.value;
|
|
254
|
+
const selectedDatum = datums.find(d => d.id == selectedDatumId);
|
|
255
|
+
|
|
256
|
+
if (selectedDatum) {
|
|
257
|
+
locationSpan.textContent = `${selectedDatum.locate_x}; ${selectedDatum.locate_y}; ${selectedDatum.locate_z}`;
|
|
258
|
+
orientationSpan.textContent = `${selectedDatum.orient_x}; ${selectedDatum.orient_y}; ${selectedDatum.orient_z}`;
|
|
259
|
+
datumInfoDiv.style.display = "block"; // Show info box
|
|
260
|
+
} else {
|
|
261
|
+
datumInfoDiv.style.display = "none"; // Hide if no datum selected
|
|
262
|
+
}
|
|
263
|
+
});
|
|
264
|
+
});
|
|
265
265
|
</script>
|
|
266
266
|
|
|
267
267
|
<script type="module">
|
|
@@ -1,13 +1,4 @@
|
|
|
1
1
|
{% extends "layouts/base.html" %}
|
|
2
|
-
{% comment %}
|
|
3
|
-
<!--
|
|
4
|
-
===----------------------------------------------------------------------===#
|
|
5
|
-
|
|
6
|
-
STAIRLab -- STructural Artificial Intelligence Laboratory
|
|
7
|
-
|
|
8
|
-
===----------------------------------------------------------------------===#
|
|
9
|
-
-->
|
|
10
|
-
{% endcomment}
|
|
11
2
|
|
|
12
3
|
{% block title %} {{ asset.calid }} | Upload {% endblock %}
|
|
13
4
|
|
|
@@ -48,6 +39,7 @@
|
|
|
48
39
|
</div>
|
|
49
40
|
|
|
50
41
|
<div class="row">
|
|
42
|
+
{% include "inventory/create-datum.html" %}
|
|
51
43
|
<div class="col">
|
|
52
44
|
<form method="POST" enctype="multipart/form-data">
|
|
53
45
|
{% csrf_token %}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: irie
|
|
3
|
-
Version: 0.0.
|
|
3
|
+
Version: 0.0.59
|
|
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
|
|
@@ -32,7 +32,7 @@ Requires-Dist: quakeio
|
|
|
32
32
|
Requires-Dist: mdof
|
|
33
33
|
Requires-Dist: veux>=0.0.35
|
|
34
34
|
Requires-Dist: xara
|
|
35
|
-
Requires-Dist: xcsi
|
|
35
|
+
Requires-Dist: xcsi>=0.0.2
|
|
36
36
|
Requires-Dist: xsection>=0.0.19
|
|
37
37
|
Requires-Dist: openbim
|
|
38
38
|
Requires-Dist: folium
|
|
@@ -66,7 +66,7 @@ irie/apps/inventory/models.py,sha256=_aCmxg0wMM9LoHuGCO_w7X59q6aMKAAI8im14l58hlw
|
|
|
66
66
|
irie/apps/inventory/sitemaps.py,sha256=Nha1MTsIH_ad7JyoxwonPytp7MNuEhDNszkEUOmlN0o,826
|
|
67
67
|
irie/apps/inventory/tables.py,sha256=vZdPOcbN1ibuWXqLwbBUoQw9iavwa1GJ5fd83k8bu7Y,27874
|
|
68
68
|
irie/apps/inventory/urls.py,sha256=BZYoetdHBVlKROz9sPuAkjx5OI-BQY5H7sXeQ4QAmKU,1696
|
|
69
|
-
irie/apps/inventory/views.py,sha256=
|
|
69
|
+
irie/apps/inventory/views.py,sha256=dlh1bPuWTqeq8-RHjx4LiKkhVPDPYxfjgeiDqTOuRlQ,20372
|
|
70
70
|
irie/apps/inventory/archive/CESMD.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
71
71
|
irie/apps/inventory/archive/calid.py,sha256=3L8MbPIGOE3kzDnqeyY055pRBiF2O2l0cmpuDbTsdTg,3014
|
|
72
72
|
irie/apps/inventory/migrations/0001_initial.py,sha256=PwTHv4Q3gqWFha--8Zp9kUOh-cYalB14jXj7RVJUVnw,1786
|
|
@@ -77,6 +77,7 @@ irie/apps/inventory/migrations/0005_alter_sensor_group.py,sha256=fW_qIR78n0UkxKm
|
|
|
77
77
|
irie/apps/inventory/migrations/0006_datum_asset_datum_locate_x_datum_locate_y_and_more.py,sha256=yCjupVpwQ1qof3grjCo7wL3wIRJWWnMatlPPR1wrMXA,1738
|
|
78
78
|
irie/apps/inventory/migrations/0007_sensor_name.py,sha256=b98wYN1XApHniMkTvrgvTjtxiSlzt966QMMftMzpNZA,474
|
|
79
79
|
irie/apps/inventory/migrations/0008_alter_sensor_dx_alter_sensor_dy_alter_sensor_dz_and_more.py,sha256=y99Ro9cTl9UphgVeILO7YIEVQ1wi0k2RhXqYnBg_ZzY,1255
|
|
80
|
+
irie/apps/inventory/migrations/0009_datum_angle_x_datum_angle_y.py,sha256=-FeZQLbPHWOKoC5WdAqhqwDYcnCCKrCLqOuv8ykYr-w,699
|
|
80
81
|
irie/apps/inventory/migrations/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
81
82
|
irie/apps/inventory/services/render.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
82
83
|
irie/apps/inventory/services/maps/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -110,6 +111,7 @@ irie/apps/prediction/migrations/0003_alter_predictormodel_protocol.py,sha256=4N_
|
|
|
110
111
|
irie/apps/prediction/migrations/0004_sensorassignment.py,sha256=aUSFlaXiclLH68nF8GW9z9P0Zaqh0ooj-FPwnRsOmKo,1395
|
|
111
112
|
irie/apps/prediction/migrations/0005_remove_sensorassignment_offset_x_and_more.py,sha256=ojU-wQl6CEtiDpS2mVJurSuw9UUdCxDblP_PDcVgqNQ,1472
|
|
112
113
|
irie/apps/prediction/migrations/0006_remove_sensorassignment_show_x_and_more.py,sha256=GbvT1XpRL7Eu_4lm6RYJziUtvFOcI9qTQoUIDvkuZWg,595
|
|
114
|
+
irie/apps/prediction/migrations/0007_remove_sensorassignment_orient_x_and_more.py,sha256=9S-eYerAVnDNRXcmS-qY55nFJDYyiP37R-75ZFmMH74,599
|
|
113
115
|
irie/apps/prediction/migrations/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
114
116
|
irie/apps/prediction/runners/__init__.py,sha256=pur6vJ5zXwjyTxl7p0TBJ8dt-2h-4Ty65KPmtRM8lyQ,2308
|
|
115
117
|
irie/apps/prediction/runners/hazus.py,sha256=sWQDDmwN82wKSHW9EGx46JOOPo_IN2CTK7RF23Rx4c4,31207
|
|
@@ -408,6 +410,7 @@ irie/apps/templates/inventory/asset-sensors.html,sha256=ChaWjUs4_NBScA5P-Z6FCE7J
|
|
|
408
410
|
irie/apps/templates/inventory/asset-table.html,sha256=QAziJ_VKc_BOmJ6YCrNbm_QUd9qqMwFZsWNieIVLlq4,13202
|
|
409
411
|
irie/apps/templates/inventory/bridge-dashboard.html,sha256=67zrDlih3LOi9xFVwPVZZkgRT3DO-lE_qRL7q8Uz9GY,45472
|
|
410
412
|
irie/apps/templates/inventory/bridge.html,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
|
|
413
|
+
irie/apps/templates/inventory/create-datum.html,sha256=HWP2K6QfYLxfCzyyFUKKl4w1fuLA0oKmXSFzeEXP6d8,2138
|
|
411
414
|
irie/apps/templates/inventory/dashboard.html,sha256=_qhFiPP6xN-UzZj5NuM5e9NxsgDHJkQ89oXN1cBwhj0,7505
|
|
412
415
|
irie/apps/templates/inventory/map-inventory.html,sha256=9afVvW5jy8VLOAk3fdzJAomukSnvJ0QXr7aJsiU_BEc,4424
|
|
413
416
|
irie/apps/templates/inventory/map-inventory2.html,sha256=bbI2tzh9puNjo7yUVlshO9197xFsMDCtzXNJVaNsxFI,5049
|
|
@@ -416,7 +419,7 @@ irie/apps/templates/inventory/map-single-asset2.html,sha256=57UjCuHke_ftcMIzqooh
|
|
|
416
419
|
irie/apps/templates/inventory/map-terrain.html,sha256=XAvFzJM06k4b5zVmHbseSD7hQAhkvF05K4UCtXD4sOU,9493
|
|
417
420
|
irie/apps/templates/inventory/preamble.tex,sha256=TmRhIWg2-Pxj_e2OBctANRZPwU8RWMT3EZJFSa3R8HY,3547
|
|
418
421
|
irie/apps/templates/inventory/report.tex,sha256=A1XKpwknlBrAZjFzzxVIDwypjXteqzoCQiuo1tQANfw,45228
|
|
419
|
-
irie/apps/templates/inventory/sensor-upload.html,sha256=
|
|
422
|
+
irie/apps/templates/inventory/sensor-upload.html,sha256=ciC1UUX9sjU46X0zFYx1bdxL9tUgZOz7QF4yB4oGEi0,14323
|
|
420
423
|
irie/apps/templates/inventory/three-maps.html,sha256=OUqF59SdAndul7eSDDaS9MYTlNhJDfLU87bM532omfc,8548
|
|
421
424
|
irie/apps/templates/layouts/base-fullscreen.html,sha256=q1nKewLnQ8inBxsUcHlq2Iv_s_qrw6k6bumX7mLR1mI,2579
|
|
422
425
|
irie/apps/templates/layouts/base.html,sha256=AF78V6gg7xOItAb_TQc6C9yz-69RgL3mB-g8Ev82T3s,2617
|
|
@@ -427,7 +430,7 @@ irie/apps/templates/networks/networks.js,sha256=KsTnwiPXv0WYTd3GiejHz1gWiBkOVfIu
|
|
|
427
430
|
irie/apps/templates/networks/styled_inputs.html,sha256=4IqtA4oQw6zAc2oypEYspIn_dS0syvVtZvkshhj1Tco,118
|
|
428
431
|
irie/apps/templates/prediction/asset-predictors.html,sha256=x11FmsMw-Vl_P077SxxqHGEu7hUDqPtmbSy1N_fA2to,4923
|
|
429
432
|
irie/apps/templates/prediction/create-mdof.html,sha256=QVuZGz3E5iwYvOQk_kkitAt5qxfP5zmr2zyVQBWKQzs,4602
|
|
430
|
-
irie/apps/templates/prediction/create-model.html,sha256=
|
|
433
|
+
irie/apps/templates/prediction/create-model.html,sha256=1PIBfpWwQKtf5OnLPPnVn4bhAfLoM8TRYmKaX6La4eg,4001
|
|
431
434
|
irie/apps/templates/prediction/new-runner.html,sha256=7gMXrrD-CylMDUelIltB9JnmnqlBr4euqktTfRFnhdU,1586
|
|
432
435
|
irie/apps/templates/prediction/predictor-profile.html,sha256=PWUQAOAAWQP_Ak2D-cQP5PoVjyLiz6Kc8lhNLlffnZk,1253
|
|
433
436
|
irie/apps/templates/prediction/xara-profile.html,sha256=pzH18TDgxLaFjhtB_XRmsN-IQTV_3qbDR2zjHNEgLTM,5019
|
|
@@ -500,8 +503,8 @@ irie/init/management/commands/make_asset.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm
|
|
|
500
503
|
irie/pull/nbi.py,sha256=KpBjJ9GEU72Qk1t4bGN9cg0QBeVJ8k9XcI3Y1oSgIR0,11478
|
|
501
504
|
irie/rest/__main__.py,sha256=AJIcioUAfG1Lj_tyxHXo1Z7qFXxa9PqxCyaqZSkIZYg,3829
|
|
502
505
|
irie/usgs/__main__.py,sha256=HiSvPn5IW5IqRiCk1qRRq5dCy3-7iISw7v1P_w2rLrk,5049
|
|
503
|
-
irie-0.0.
|
|
504
|
-
irie-0.0.
|
|
505
|
-
irie-0.0.
|
|
506
|
-
irie-0.0.
|
|
507
|
-
irie-0.0.
|
|
506
|
+
irie-0.0.59.dist-info/METADATA,sha256=QOlyvvwH8_61UE5b056pprE0JRbFsgwFh5-jFlfq-gI,3210
|
|
507
|
+
irie-0.0.59.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
508
|
+
irie-0.0.59.dist-info/entry_points.txt,sha256=A_3h9wPBGfxGQ78_MGa-nO6Z0foxOYeAnIE47jxEztg,44
|
|
509
|
+
irie-0.0.59.dist-info/top_level.txt,sha256=zVCxi5E2nkISZPzKq8VEhWe_dGuPcefLYV1tYqQdwlY,5
|
|
510
|
+
irie-0.0.59.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|