Skip to content

Commit

Permalink
Removed print-statements
Browse files Browse the repository at this point in the history
  • Loading branch information
modelonrobinandersson committed Nov 5, 2024
1 parent 12121b8 commit 3f42f5f
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/common/io.py
Original file line number Diff line number Diff line change
Expand Up @@ -1343,7 +1343,6 @@ def _get_trajectory(self, data_index, start_index = 0, stop_index = None):
index_in_cache = data_index in self._data_2
partial_cache_ok = self._can_use_partial_cache(start_index, stop_index)
if (index_in_cache and not self._allow_file_updates) or (index_in_cache and partial_cache_ok):
print(f"Doing an early return")
return self._data_2[data_index]

file_position = self._data_2_info["file_position"]
Expand All @@ -1352,12 +1351,10 @@ def _get_trajectory(self, data_index, start_index = 0, stop_index = None):
nbr_variables = self._data_2_info["nbr_variables"]

# Account for sub-sets of data
print(f"{start_index=}, {stop_index=}")
start_index = max(0, start_index)
stop_index = max(0, nbr_points if stop_index is None else min(nbr_points, stop_index))
new_file_position = file_position + start_index*sizeof_type*nbr_variables
new_nbr_points = stop_index - start_index
print(f"{start_index=}, {stop_index=}, {new_nbr_points=}")

self._data_2[data_index] = fmi_util.read_trajectory(
encode(self._fname),
Expand Down

0 comments on commit 3f42f5f

Please sign in to comment.