Skip to content

Commit

Permalink
starting code
Browse files Browse the repository at this point in the history
  • Loading branch information
rugeli committed Jul 5, 2023
1 parent a8d7fab commit ba82714
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions cellpack/autopack/upy/simularium/simularium_helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@
from cellpack.autopack.upy import hostHelper
import collada

import boto3
import logging


class Instance:
def __init__(self, name, instance_id, unique_id, radius, viz_type, mesh=None):
Expand Down Expand Up @@ -1331,6 +1334,7 @@ def writeToFile(self, file_name, bb, recipe_name, version):
time_units=UnitData("ns"), # nanoseconds
spatial_units=UnitData("nm"), # nanometers
)
print("simularium helper---", vars(converted_data))
TrajectoryConverter(converted_data).save(file_name, False)

def raycast(self, **kw):
Expand All @@ -1345,3 +1349,16 @@ def raycast(self, **kw):

def raycast_test(self, obj, start, end, length, **kw):
return

# def store_results_in_s3(bucket_name, file_name, object_name=None):
# if object_name is None:
# object_name = file_name

# s3_client = boto3.client("3s")
# try:
# response = s3_client.upload_file(file_name, bucket_name, object_name)
# except ClientError as e:
# logging.error(e)
# return False
# return True

0 comments on commit ba82714

Please sign in to comment.