Skip to content

Commit

Permalink
restore sidecar capabilities
Browse files Browse the repository at this point in the history
  • Loading branch information
BenGalewsky committed May 30, 2023
1 parent 6f26d35 commit e401e12
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
7 changes: 4 additions & 3 deletions tests/test_post_operation.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,8 @@ def test_post_good_query_with_params(self, mocker):
)

config = {
'TARGET_BACKEND': 'uproot'
'TARGET_BACKEND': 'uproot',
'TRANSFORMER_SCIENCE_IMAGE': "foo/bar:latest"
}
app = create_app(config, provided_translator=mock_ast_translator)
client = app.test_client()
Expand All @@ -85,7 +86,7 @@ def test_post_good_query_with_params(self, mocker):
decoder_parts = decoder.MultipartDecoder(response.data, content_type)

transformer_image = str(decoder_parts.parts[0].content, 'utf-8')
zip_file = decoder_parts.parts[1].content
zip_file = decoder_parts.parts[3].content

print("Transformer Image: ", transformer_image)
print("Zip File: ", zip_file)
Expand Down Expand Up @@ -130,7 +131,7 @@ def test_post_good_query_without_params(self, mocker):
decoder_parts = decoder.MultipartDecoder(response.data, content_type)

transformer_image = str(decoder_parts.parts[0].content, 'utf-8')
zip_file = decoder_parts.parts[1].content
zip_file = decoder_parts.parts[3].content

print("Transformer Image: ", transformer_image)
print("Zip File: ", zip_file)
Expand Down
9 changes: 9 additions & 0 deletions transformer_capabilities.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"name": "FuncADL based uproot transformer",
"description": "Extracts data from flat ntuple style root files.",
"limitations": "Would be good to note what isn't implemented",
"file-formats": ["parquet"],
"stats-parser": "UprootStats",
"language": "python",
"command": "/generated/transform_single_file.py"
}

0 comments on commit e401e12

Please sign in to comment.