def tojava(cls, dataholder): ''' Make a java data holder ''' jdh = _jdataholder() for k,v in dataholder.items(): if k != 'metadata': jdh.addDataset(k, v) if 'metadata' in dataholder: md = dict() for k, v in dataholder.metadata.items(): md[k] = v jdh.setMetadata(_Metadata(md)) return jdh
def tojava(cls, dataholder): ''' Make a java data holder ''' jdh = _jdataholder() for k, v in dataholder.items(): if k != "metadata": v = _jinput(v) jdh.addDataset(k, v) if "metadata" in dataholder: md = dict() for k, v in dataholder.metadata.items(): v = _jinput(v) md[k] = v jdh.setMetadata(_Metadata(md)) return jdh
def tojava(cls, dataholder): """ Make a java data holder """ jdh = _jdataholder() for k, v in dataholder.items(): if k != "metadata": v = _jinput(v) jdh.addDataset(k, v) if "metadata" in dataholder: md = dict() for k, v in dataholder.metadata.items(): v = _jinput(v) md[k] = v jdh.setMetadata(_Metadata(md)) return jdh
def tojava(cls, dataholder): ''' Make a java data holder ''' jdh = _jdataholder() for k,v in dataholder.items(): if k != "metadata": v = _jinput(v) if v is not None: # no lazy arrays supported yet jdh.addDataset(k, v) if "metadata" in dataholder: md = dict() for k, v in dataholder.metadata.items(): v = _jinput(v) md[k] = v jdh.setMetadata(_Metadata(md)) return jdh
def tojava(cls, dataholder): ''' Make a java data holder ''' jdh = _jdataholder() for k, v in dataholder.items(): if k != "metadata": v = _jinput(v) if v is not None: # no lazy arrays supported yet jdh.addDataset(k, v) if "metadata" in dataholder: md = dict() for k, v in dataholder.metadata.items(): v = _jinput(v) md[k] = v jdh.setMetadata(_Metadata(md)) return jdh