Skip to content

Commit 80dd301

Browse files
committed
update
1 parent bd83146 commit 80dd301

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

sdgym/benchmark.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,9 @@ def _setup_output_destination(
243243
The s3 client that can be used to read / write to s3. Defaults to ``None``.
244244
"""
245245
if s3_client:
246-
return _setup_output_destination_aws(output_destination, synthesizers, datasets, s3_client)
246+
return _setup_output_destination_aws(
247+
output_destination, synthesizers, datasets, modality, s3_client
248+
)
247249

248250
if output_destination is None:
249251
return {}

tests/unit/test_benchmark.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -674,13 +674,13 @@ def test_setup_output_destination_aws(mock_get_metainfo_increment):
674674

675675
# Run
676676
paths = _setup_output_destination_aws(
677-
output_destination, synthesizers, datasets, s3_client_mock
677+
output_destination, synthesizers, datasets, 'single_table', s3_client_mock
678678
)
679679

680680
# Assert
681681
today = datetime.today().strftime('%m_%d_%Y')
682682
bucket_name = 'my-bucket'
683-
top_folder = f'results/SDGym_results_{today}'
683+
top_folder = f'results/single_table/SDGym_results_{today}'
684684
expected_calls = [call(Bucket=bucket_name, Key=top_folder + '/')]
685685
mock_get_metainfo_increment.assert_called_once_with(
686686
f's3://{bucket_name}/{top_folder}', s3_client_mock

0 commit comments

Comments
 (0)