예제 #1
0
    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
예제 #2
0
    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
예제 #3
0
    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
예제 #4
0
    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
예제 #5
0
    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