Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Random float casting fix #3

Merged
merged 1 commit into from
Feb 23, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions src/scarr/container/container.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,12 +85,14 @@ def run(self):
def configure(self, tile_x, tile_y, bytes, convergence_step = None):
for filter in self.filters:
filter.configure(tile_x, tile_y)
return self.data.configure(tile_x, tile_y, bytes, self.slice_index, self.trace_index, self.time_slice, self.stride, convergence_step)
# int() casting needed for random typing linux bug
return int(self.data.configure(tile_x, tile_y, bytes, self.slice_index, self.trace_index, self.time_slice, self.stride, convergence_step))

def configure2(self, tile_x, tile_y, bytes, convergence_step = None):
for filter in self.filters:
filter.configure(tile_x, tile_y)
return self.data2.configure(tile_x, tile_y, bytes, self.slice_index, self.trace_index, self.time_slice, self.stride, convergence_step)
# int() casting needed for random typing linux bug
return int(self.data2.configure(tile_x, tile_y, bytes, self.slice_index, self.trace_index, self.time_slice, self.stride, convergence_step))

def get_batches(self, tile_x, tile_y):
for batch in self.data.get_batch_generator():
Expand Down
Loading