irie 0.0.56__py3-none-any.whl → 0.0.57__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/prediction/runners/opensees/__init__.py +4 -3
- irie/apps/prediction/views.py +4 -3
- {irie-0.0.56.dist-info → irie-0.0.57.dist-info}/METADATA +6 -7
- {irie-0.0.56.dist-info → irie-0.0.57.dist-info}/RECORD +7 -7
- {irie-0.0.56.dist-info → irie-0.0.57.dist-info}/WHEEL +0 -0
- {irie-0.0.56.dist-info → irie-0.0.57.dist-info}/entry_points.txt +0 -0
- {irie-0.0.56.dist-info → irie-0.0.57.dist-info}/top_level.txt +0 -0
|
@@ -12,12 +12,13 @@ from pathlib import Path
|
|
|
12
12
|
import contextlib
|
|
13
13
|
try:
|
|
14
14
|
from xcsi.csi import collect_outlines, load as load_csi
|
|
15
|
-
from xcsi.csi._frame.section import create_section
|
|
16
|
-
from xcsi.csi._frame.section import iter_sections
|
|
15
|
+
from xcsi.csi._frame.section import create_section, iter_sections
|
|
17
16
|
from xcsi.job import Job
|
|
18
17
|
from xcsi.metrics import PeakDrift
|
|
19
18
|
except:
|
|
20
|
-
|
|
19
|
+
from openbim.csi import load as load_csi, create_model, collect_outlines
|
|
20
|
+
from openbim.csi._frame.section import create_section, iter_sections
|
|
21
|
+
|
|
21
22
|
|
|
22
23
|
from irie.apps.prediction.runners import (Runner, RunID, classproperty)
|
|
23
24
|
|
irie/apps/prediction/views.py
CHANGED
|
@@ -253,13 +253,13 @@ def create_model(request, calid):
|
|
|
253
253
|
try:
|
|
254
254
|
csi = load((str(line.decode()).replace("\r\n","\n") for line in uploaded_file.readlines()))
|
|
255
255
|
except Exception as e:
|
|
256
|
-
return HttpResponse(r400.render({"message": json.dumps({"error": str(e)})}), status=
|
|
256
|
+
return HttpResponse(r400.render({"message": json.dumps({"error": str(e)})}), status=500)
|
|
257
257
|
|
|
258
258
|
# 2) Process CSI data into xara model
|
|
259
259
|
try:
|
|
260
260
|
model = create_model(csi, verbose=True)
|
|
261
261
|
except Exception as e:
|
|
262
|
-
return HttpResponse(r400.render({"message": json.dumps({"error": str(e)})}), status=
|
|
262
|
+
return HttpResponse(r400.render({"message": json.dumps({"error": str(e)})}), status=500)
|
|
263
263
|
|
|
264
264
|
# 3) Render the model
|
|
265
265
|
outlines = collect_outlines(csi, model.frame_tags)
|
|
@@ -299,7 +299,8 @@ def create_model(request, calid):
|
|
|
299
299
|
except Exception as e:
|
|
300
300
|
if "DEBUG" in os.environ and os.environ["DEBUG"]:
|
|
301
301
|
raise e
|
|
302
|
+
print(e)
|
|
302
303
|
html_template = loader.get_template("site/page-500.html")
|
|
303
|
-
return HttpResponse(html_template.render({}, request))
|
|
304
|
+
return HttpResponse(html_template.render({}, request), status=500)
|
|
304
305
|
|
|
305
306
|
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: irie
|
|
3
|
-
Version: 0.0.
|
|
3
|
+
Version: 0.0.57
|
|
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
|
|
7
7
|
Project-URL: Documentation, https://stairlab.berkeley.edu/software/irie/
|
|
8
|
-
Keywords:
|
|
8
|
+
Keywords: resilience,structural-health-monitoring,finite-element-analysis,xara
|
|
9
9
|
Classifier: Development Status :: 4 - Beta
|
|
10
10
|
Classifier: Intended Audience :: Science/Research
|
|
11
11
|
Classifier: Intended Audience :: Developers
|
|
@@ -27,15 +27,14 @@ Classifier: Operating System :: Unix
|
|
|
27
27
|
Classifier: Operating System :: MacOS
|
|
28
28
|
Description-Content-Type: text/markdown
|
|
29
29
|
Requires-Dist: tqdm
|
|
30
|
-
Requires-Dist: opensees
|
|
30
|
+
Requires-Dist: opensees>=0.1.0
|
|
31
31
|
Requires-Dist: quakeio
|
|
32
32
|
Requires-Dist: mdof
|
|
33
|
-
Requires-Dist: veux
|
|
33
|
+
Requires-Dist: veux>=0.0.35
|
|
34
34
|
Requires-Dist: xara
|
|
35
|
-
Requires-Dist: bottle
|
|
36
|
-
Requires-Dist: openbim
|
|
37
|
-
Requires-Dist: xsection
|
|
38
35
|
Requires-Dist: xcsi
|
|
36
|
+
Requires-Dist: xsection>=0.0.19
|
|
37
|
+
Requires-Dist: openbim
|
|
39
38
|
Requires-Dist: folium
|
|
40
39
|
Requires-Dist: pandas
|
|
41
40
|
Requires-Dist: numpy
|
|
@@ -100,7 +100,7 @@ irie/apps/prediction/metrics.py,sha256=Zh1utUZTGddQEVn4e1rLO74tbIz7bVvZli8sgmuB_
|
|
|
100
100
|
irie/apps/prediction/models.py,sha256=06yXUH2JtKAsMn9BCJe0nlwOXdjNOXkl9UnSw8wJ6F4,3048
|
|
101
101
|
irie/apps/prediction/predictor.py,sha256=-x_4kHWnfUxiX2aQfbl3dsbVAG4lRKAFbo1CqfZNCIc,831
|
|
102
102
|
irie/apps/prediction/urls.py,sha256=V41EjswrZ4FGPMetHzxkL4m0wNJvPEuV0UrwxLWqgkA,1012
|
|
103
|
-
irie/apps/prediction/views.py,sha256=
|
|
103
|
+
irie/apps/prediction/views.py,sha256=OyADC1axt8AxR1WRCyqq_cfba3ar-IrvUd-dmq8Cbz8,10050
|
|
104
104
|
irie/apps/prediction/views_api.py,sha256=DJzLYO5ouPOWkkZJNZxZJzxC3TROKJ-L6Z2IC1NMuFQ,6888
|
|
105
105
|
irie/apps/prediction/migrations/0001_initial.py,sha256=-0GWd2vUUAzSPfptccAJ3raI3UD4Xj9H0E5EJ7xN0Ek,1428
|
|
106
106
|
irie/apps/prediction/migrations/0002_alter_predictormodel_protocol.py,sha256=nrQvuZ1eRR7fR17IjdS0Xyw14y9DpE6HkG2-h7HQ_zA,560
|
|
@@ -112,7 +112,7 @@ irie/apps/prediction/migrations/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm
|
|
|
112
112
|
irie/apps/prediction/runners/__init__.py,sha256=pur6vJ5zXwjyTxl7p0TBJ8dt-2h-4Ty65KPmtRM8lyQ,2308
|
|
113
113
|
irie/apps/prediction/runners/hazus.py,sha256=sWQDDmwN82wKSHW9EGx46JOOPo_IN2CTK7RF23Rx4c4,31207
|
|
114
114
|
irie/apps/prediction/runners/ssid.py,sha256=_5TZrbWtt-Mid-PXiUu33QOQ7rUK2FLkyAg_B957RLc,18811
|
|
115
|
-
irie/apps/prediction/runners/opensees/__init__.py,sha256=
|
|
115
|
+
irie/apps/prediction/runners/opensees/__init__.py,sha256=Fim3_faaUlpbNow4gGcvQnAmRBaFIfONeRQWKf8nR-I,22873
|
|
116
116
|
irie/apps/prediction/runners/opensees/metrics.py,sha256=6dyoBXBx9_itF83rculpuE7B__blG5AIMfQpa-srulU,6431
|
|
117
117
|
irie/apps/prediction/runners/opensees/utilities.py,sha256=1cajnV6gWkJ5obYixfbHZKwxi1ECpR0sBWquAAGhseE,9032
|
|
118
118
|
irie/apps/prediction/runners/opensees/xmlutils.py,sha256=Q3i5L0Dp_5nRsKRGMr-m_bS03Mxa36Ujb-RvwAmResc,7510
|
|
@@ -497,8 +497,8 @@ irie/init/management/commands/make_asset.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm
|
|
|
497
497
|
irie/pull/nbi.py,sha256=KpBjJ9GEU72Qk1t4bGN9cg0QBeVJ8k9XcI3Y1oSgIR0,11478
|
|
498
498
|
irie/rest/__main__.py,sha256=AJIcioUAfG1Lj_tyxHXo1Z7qFXxa9PqxCyaqZSkIZYg,3829
|
|
499
499
|
irie/usgs/__main__.py,sha256=HiSvPn5IW5IqRiCk1qRRq5dCy3-7iISw7v1P_w2rLrk,5049
|
|
500
|
-
irie-0.0.
|
|
501
|
-
irie-0.0.
|
|
502
|
-
irie-0.0.
|
|
503
|
-
irie-0.0.
|
|
504
|
-
irie-0.0.
|
|
500
|
+
irie-0.0.57.dist-info/METADATA,sha256=i-jtlQpWBj9ccHP8BTG7N5GiP9piTqWbFk1U_DAaeQI,3203
|
|
501
|
+
irie-0.0.57.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
502
|
+
irie-0.0.57.dist-info/entry_points.txt,sha256=A_3h9wPBGfxGQ78_MGa-nO6Z0foxOYeAnIE47jxEztg,44
|
|
503
|
+
irie-0.0.57.dist-info/top_level.txt,sha256=zVCxi5E2nkISZPzKq8VEhWe_dGuPcefLYV1tYqQdwlY,5
|
|
504
|
+
irie-0.0.57.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|