Skip to content

Commit

Permalink
[bugfix] RContainerizer.py
Browse files Browse the repository at this point in the history
  • Loading branch information
AndyBRoswell committed Aug 26, 2024
1 parent 3b0f718 commit 71240cf
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion vreapis/containerizer/RContainerizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import jinja2

import common
from catalog.models import Cell

handler = logging.StreamHandler()
handler.setLevel(logging.DEBUG)
Expand Down Expand Up @@ -57,9 +58,11 @@ def map_dependencies(dependencies, module_name_mapping):
return set_conda_deps, set_pip_deps

@staticmethod
def build_templates(cell=None, files_info=None, module_name_mapping=None):
def build_templates(cell: Cell=None, files_info=None, module_name_mapping=None):
# we also want to always add the id to the input parameters
inputs = cell.inputs
if isinstance(cell.types, list):
cell.types = {} # In R, builtin list is used to represent both arrays and dicts. From R side of the frontend, an empty list is serialized into [] rather than {} and it seems difficult to handle this in R. So we correct it here.
types = cell.types
inputs.append('id')
cell.concatenate_all_inputs()
Expand Down

0 comments on commit 71240cf

Please sign in to comment.