Skip to content

Commit

Permalink
Remove dtype assignments.
Browse files Browse the repository at this point in the history
  • Loading branch information
ioannis-vm committed May 18, 2024
1 parent 00b86af commit 7e98c01
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions pelicun/tests/model/test_damage_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -620,7 +620,6 @@ 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(
Expand Down Expand Up @@ -667,7 +666,6 @@ 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(
Expand Down Expand Up @@ -707,7 +705,6 @@ 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(
Expand Down Expand Up @@ -764,7 +761,6 @@ 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"}}
Expand All @@ -780,7 +776,6 @@ 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']),
)

Expand All @@ -795,7 +790,6 @@ 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"}}
Expand All @@ -811,7 +805,6 @@ 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']),
)

Expand All @@ -828,7 +821,6 @@ 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"}}
Expand All @@ -844,7 +836,6 @@ 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']),
)

Expand All @@ -862,7 +853,6 @@ 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"}}
Expand All @@ -878,7 +868,6 @@ 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']),
)

Expand All @@ -895,7 +884,6 @@ 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"}}
Expand All @@ -911,7 +899,6 @@ 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']),
)

Expand All @@ -926,7 +913,6 @@ 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"}}
Expand All @@ -942,7 +928,6 @@ 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']),
)

Expand All @@ -959,7 +944,6 @@ 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"}}
Expand All @@ -977,7 +961,6 @@ 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']),
)

Expand All @@ -989,7 +972,6 @@ 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"}}
Expand Down

0 comments on commit 7e98c01

Please sign in to comment.