Skip to content

Commit

Permalink
[source_epochs_fix] add support to epoch on source
Browse files Browse the repository at this point in the history
  • Loading branch information
NoaShapira8 committed Jun 8, 2024
1 parent 837cd67 commit 8e69b4c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src_py/apiServer/transmitter.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,10 @@ def update_csv(self, csv_files: list, source_pieces: list):
target_workers = source_piece.get_target_workers()
num_of_batches = source_piece.get_num_of_batches()
nerltensor_type = source_piece.get_nerltensor_type()
phase_type = source_piece.get_phase()
with open(csv_file, 'r') as file:
csvfile = file.read()
data_str = f'{index + 1}#{total_sources}#{source_name}#{target_workers}#{num_of_batches}#{nerltensor_type}#{csvfile}'
data_str = f'{index + 1}#{total_sources}#{source_name}#{target_workers}#{phase_type}#{num_of_batches}#{nerltensor_type}#{csvfile}'
try:
response = requests.post(self.updateCSVAddress, data = data_str)
if not response.ok:
Expand Down

0 comments on commit 8e69b4c

Please sign in to comment.