odsbox-diff 1.0.0__tar.gz → 1.0.1__tar.gz

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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: odsbox-diff
3
- Version: 1.0.0
3
+ Version: 1.0.1
4
4
  Summary: Compare two ASAM ODS hierarchy instances and write a structured diff result.
5
5
  Keywords: ASAM,ODS,measurement data,diff,regression testing
6
6
  Author: A. Krantz
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "odsbox-diff"
3
- version = "1.0.0"
3
+ version = "1.0.1"
4
4
  description = "Compare two ASAM ODS hierarchy instances and write a structured diff result."
5
5
  readme = "README.md"
6
6
  license = "Apache-2.0"
@@ -1,6 +1,6 @@
1
1
  """odsbox-diff: compare two ASAM ODS hierarchy instances."""
2
2
 
3
- __version__ = "1.0.0"
3
+ __version__ = "1.0.1"
4
4
 
5
5
  from .api import (
6
6
  collect_to_file,
@@ -88,9 +88,9 @@ class Collector:
88
88
  }
89
89
  )
90
90
  log.debug("Found %s submatrices related to your test", sub_matrices.shape[0])
91
- sub_matrices.columns = ["id", "measurement", "number_of_rows"]
91
+ sub_matrices.columns = pd.Index(["id", "measurement", "number_of_rows"])
92
92
  local_column_entity = self._mc.entity_by_base_name("AoLocalColumn")
93
- exception_errors = []
93
+ exception_errors: list[str] = []
94
94
  log.debug("Load bulk data from ASAM ODS server")
95
95
  for sub_matrix_index, submatrix_row in enumerate(sub_matrices.itertuples()):
96
96
  if show_progress:
@@ -108,21 +108,21 @@ class Collector:
108
108
  },
109
109
  }
110
110
  )
111
- bulk_data.columns = ["id", "generation_parameters", "values", "flags"]
111
+ bulk_data.columns = pd.Index(["id", "generation_parameters", "values", "flags"])
112
112
  for _, row in bulk_data.iterrows():
113
113
  hash_value = self._hash_pandas_row(row)
114
114
  local_column_id = row.id
115
115
  parent_dictionary = lookup.get((local_column_entity.name, local_column_id), None)
116
116
  if parent_dictionary is None:
117
117
  raise ValueError("parent wasn't added")
118
- parent_dictionary["__BULK_HASH"] = hash_value
118
+ parent_dictionary["_BULK_HASH"] = hash_value
119
119
  except HTTPError as e:
120
120
  error_text = f"Unable to retrieve bulk for Submatrix {submatrix_id}: {e}"
121
121
  exception_errors.append(error_text)
122
122
  sub_matrix_dictionary = lookup.get((sub_matrix_entity.name, submatrix_id), None)
123
123
  if sub_matrix_dictionary is None:
124
124
  raise ValueError("parent wasn't added")
125
- sub_matrix_dictionary["__BULK_HASH_CALCULATION_ERROR"] = error_text
125
+ sub_matrix_dictionary["_BULK_HASH_CALCULATION_ERROR"] = error_text
126
126
  log.debug("Load bulk data from ASAM ODS server finished")
127
127
  for exception_error in exception_errors:
128
128
  log.error(exception_error)
@@ -487,9 +487,9 @@ class Collector:
487
487
  id_entry = f"{entity.name}.{self._mc.attribute(entity, 'id').name}"
488
488
  resolved_root_id: int = result[entity.name][id_entry]
489
489
 
490
- instances_to_collect = []
490
+ instances_to_collect: list[tuple[str, str, str | None]] = []
491
491
 
492
- path_to_root_instance = None
492
+ path_to_root_instance: str | None = None
493
493
 
494
494
  current_entity = entity
495
495
  current_children_relation = self._mc.relation_no_throw(current_entity, "children")
File without changes
File without changes