As a developer, I need to be able to send binary data over the web and load it in simulariumio.
Acceptance Criteria
A developer can create a 'TrajectoryData' with binary data that is loaded in memory rather than in a file.
Details
For JSON data, can currently use a InputFileData with either file_contents or file_path, but for binary data, currently it only works for a binary file_path not file_contents.
[ ] InputFileData._is_binary_file() -> InputFileData._is_binary() and should work for file_contents.
[ ] SimulariumBinaryReader._binary_data_from_file() -> ? should work for binary file_contents, without file open
Use Case
As a developer, I need to be able to send binary data over the web and load it in simulariumio.
Acceptance Criteria
A developer can create a 'TrajectoryData' with binary data that is loaded in memory rather than in a file.
Details
For JSON data, can currently use a
InputFileData
with either file_contents or file_path, but for binary data, currently it only works for a binary file_path not file_contents.InputFileData._is_binary_file()
->InputFileData._is_binary()
and should work for file_contents.SimulariumBinaryReader._binary_data_from_file()
->?
should work for binary file_contents, without file open