From 0ba5ea11c2718b18186d1bc14d7f147713429652 Mon Sep 17 00:00:00 2001 From: John Vouvakis Manousakis Date: Sat, 18 May 2024 12:50:39 -0700 Subject: [PATCH] Add back dtype assignemnts And hope that Windows OS is happy with them. --- pelicun/tests/model/test_damage_model.py | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/pelicun/tests/model/test_damage_model.py b/pelicun/tests/model/test_damage_model.py index ba7482acb..b2fe5028e 100644 --- a/pelicun/tests/model/test_damage_model.py +++ b/pelicun/tests/model/test_damage_model.py @@ -500,7 +500,8 @@ def test__generate_dmg_sample(self, assessment_instance): pd.DataFrame( { ('cmp.test', '1', '2', '3', '1', '1'): [1, 1], - } + }, + dtype='int32', ).rename_axis(columns=['cmp', 'loc', 'dir', 'uid', 'block', 'ls']), ) @@ -620,6 +621,7 @@ def test__prepare_dmg_quantities(self, assessment_instance): ('A', '0', '1', '0', '1'): [-1, 0, 1, 2, 3], # block 1 ('A', '0', '1', '0', '2'): [3, -1, 0, 1, 2], # block 2 }, + dtype='int32', ).rename_axis(columns=['cmp', 'loc', 'dir', 'uid', 'block']) component_sample = pd.DataFrame( @@ -666,6 +668,7 @@ def test__prepare_dmg_quantities(self, assessment_instance): { ('A', '0', '1', '0', '1'): [-1, 0, 1, 2, 3], }, + dtype='int32', ).rename_axis(columns=['cmp', 'loc', 'dir', 'uid', 'block']) component_sample = pd.DataFrame( @@ -705,6 +708,7 @@ def test__prepare_dmg_quantities(self, assessment_instance): ('A', '0', '1', '0', '1'): [-1, 0], ('A', '0', '1', '1', '1'): [1, 0], }, + dtype='int32', ).rename_axis(columns=['cmp', 'loc', 'dir', 'uid', 'block']) component_sample = pd.DataFrame( @@ -761,6 +765,7 @@ def test__perform_dmg_task(self, assessment_instance): ('CMP.B', '1', '1', '0'): [0, 0, 1], ('CMP.B', '1', '1', '1'): [1, 0, 0], }, + dtype='int32', ).rename_axis(columns=['cmp', 'loc', 'dir', 'uid']) dmg_process = {"1_CMP.B": {"DS1": "CMP.A_DS4"}} @@ -776,6 +781,7 @@ def test__perform_dmg_task(self, assessment_instance): ('CMP.B', '1', '1', '0'): [0, 0, 1], ('CMP.B', '1', '1', '1'): [1, 0, 0], }, + dtype='int32', ).rename_axis(columns=['cmp', 'loc', 'dir', 'uid']), ) @@ -790,6 +796,7 @@ def test__perform_dmg_task(self, assessment_instance): ('CMP.B', '1', '1', '0'): [0, 0, 1], ('CMP.B', '1', '1', '1'): [1, 0, 0], }, + dtype='int32', ).rename_axis(columns=['cmp', 'loc', 'dir', 'uid']) dmg_process = {"1_CMP.B": {"DS1": "CMP.A_NA"}} @@ -805,6 +812,7 @@ def test__perform_dmg_task(self, assessment_instance): ('CMP.B', '1', '1', '0'): [0, 0, 1], ('CMP.B', '1', '1', '1'): [1, 0, 0], }, + dtype='int32', ).rename_axis(columns=['cmp', 'loc', 'dir', 'uid']), ) @@ -821,6 +829,7 @@ def test__perform_dmg_task(self, assessment_instance): ('CMP.B', '1', '1', '0'): [0, 0, 1], ('CMP.B', '2', '1', '0'): [1, 0, 0], }, + dtype='int32', ).rename_axis(columns=['cmp', 'loc', 'dir', 'uid']) dmg_process = {"1_CMP.B-LOC": {"DS1": "CMP.A_DS4"}} @@ -836,6 +845,7 @@ def test__perform_dmg_task(self, assessment_instance): ('CMP.B', '1', '1', '0'): [0, 0, 1], ('CMP.B', '2', '1', '0'): [1, 0, 0], }, + dtype='int32', ).rename_axis(columns=['cmp', 'loc', 'dir', 'uid']), ) @@ -853,6 +863,7 @@ def test__perform_dmg_task(self, assessment_instance): ('CMP.C', '1', '1', '0'): [0, 0, 0], ('CMP.D', '1', '1', '0'): [0, 0, 0], }, + dtype='int32', ).rename_axis(columns=['cmp', 'loc', 'dir', 'uid']) dmg_process = {"1_CMP.A": {"DS1": "ALL_DS2"}} @@ -868,6 +879,7 @@ def test__perform_dmg_task(self, assessment_instance): ('CMP.C', '1', '1', '0'): [2, 0, 0], ('CMP.D', '1', '1', '0'): [2, 0, 0], }, + dtype='int32', ).rename_axis(columns=['cmp', 'loc', 'dir', 'uid']), ) @@ -884,6 +896,7 @@ def test__perform_dmg_task(self, assessment_instance): ('CMP.B', '1', '1', '0'): [0, 0, 1], ('CMP.B', '1', '1', '1'): [1, 0, 0], }, + dtype='int32', ).rename_axis(columns=['cmp', 'loc', 'dir', 'uid']) dmg_process = {"1_CMP.B": {"DS1": "CMP.A_NA"}} @@ -899,6 +912,7 @@ def test__perform_dmg_task(self, assessment_instance): ('CMP.B', '1', '1', '0'): [0, 0, 1], ('CMP.B', '1', '1', '1'): [1, 0, 0], }, + dtype='int32', ).rename_axis(columns=['cmp', 'loc', 'dir', 'uid']), ) @@ -913,6 +927,7 @@ def test__perform_dmg_task(self, assessment_instance): ('CMP.B', '1', '1', '0'): [0, 0, 1], ('CMP.B', '2', '1', '0'): [1, 0, 0], }, + dtype='int32', ).rename_axis(columns=['cmp', 'loc', 'dir', 'uid']) dmg_process = {"1_CMP.B-LOC": {"DS1": "CMP.A_NA"}} @@ -928,6 +943,7 @@ def test__perform_dmg_task(self, assessment_instance): ('CMP.B', '1', '1', '0'): [0, 0, 1], ('CMP.B', '2', '1', '0'): [1, 0, 0], }, + dtype='int32', ).rename_axis(columns=['cmp', 'loc', 'dir', 'uid']), ) @@ -944,6 +960,7 @@ def test__perform_dmg_task(self, assessment_instance): ('CMP.C', '1', '1', '0'): [0, 0, 0], ('CMP.C', '2', '1', '0'): [0, 0, 0], }, + dtype='int32', ).rename_axis(columns=['cmp', 'loc', 'dir', 'uid']) dmg_process = {"1_CMP.A-LOC": {"DS1": "ALL_NA"}} @@ -961,6 +978,7 @@ def test__perform_dmg_task(self, assessment_instance): ('CMP.C', '1', '1', '0'): [0, 0, -1], ('CMP.C', '2', '1', '0'): [-1, 0, 0], }, + dtype='int32', ).rename_axis(columns=['cmp', 'loc', 'dir', 'uid']), ) @@ -972,6 +990,7 @@ def test__perform_dmg_task(self, assessment_instance): ('CMP.A', '1', '1', '0'): [0, 0, 0], ('CMP.B', '1', '1', '1'): [0, 0, 0], }, + dtype='int32', ).rename_axis(columns=['cmp', 'loc', 'dir', 'uid']) dmg_process = {"1_CMP.C": {"DS1": "CMP.A_DS4"}}