File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- from dataclasses import dataclass , field
1+ from dataclasses import dataclass
22
33import numpy as np
44
@@ -13,19 +13,17 @@ class Cost2015Data:
1313
1414 total_costs : float = 0.0
1515
16- s_label : list [str ] = field (
17- default_factory = np .array (["not used" ] * 100 , dtype = object )
18- )
16+ s_label : list [str ] = np .array (["not used" ] * 100 , dtype = object ) # noqa: RUF009
1917
20- s_kref : list [float ] = field ( default_factory = np .zeros (100 , dtype = np .float64 ))
18+ s_kref : list [float ] = np .zeros (100 , dtype = np .float64 ) # noqa: RUF009
2119
22- s_k : list [float ] = field ( default_factory = np .zeros (100 , dtype = np .float64 ))
20+ s_k : list [float ] = np .zeros (100 , dtype = np .float64 ) # noqa: RUF009
2321
24- s_cref : list [float ] = field ( default_factory = np .zeros (100 , dtype = np .float64 ))
22+ s_cref : list [float ] = np .zeros (100 , dtype = np .float64 ) # noqa: RUF009
2523
26- s_cost : list [float ] = field ( default_factory = np .zeros (100 , dtype = np .float64 ))
24+ s_cost : list [float ] = np .zeros (100 , dtype = np .float64 ) # noqa: RUF009
2725
28- s_cost_factor : list [float ] = field ( default_factory = np .zeros (100 , dtype = np .float64 ))
26+ s_cost_factor : list [float ] = np .zeros (100 , dtype = np .float64 ) # noqa: RUF009
2927
3028
3129CREATE_DICTS_FROM_DATACLASS = Cost2015Data
You can’t perform that action at this time.
0 commit comments