Python

    Table of contents
    You are currently comparing two old versions - only when you are comparing against the latest version can you revert. Return to version archive.

    Combined revision comparison

    Comparing version 14:53, 3 Jul 2018 by aduarte with version 15:22, 3 Jul 2018 by aduarte.

    ...

    In a the python interpreter:

    >>> from sdas.core.client.SDASClient import SDASClient
    >>> from sdas.core.SDAStime import Date, Time, TimeStamp
    >>> host='baco.ipfn.ist.utl.pt'
    port=8888
    >>> port=8888
    >>> client = SDASClient(host,port)
    

    ...

    >>> found = client.searchDeclaredEventsByName('S')
    
    ');
    
    >>> found = client.searchDeclaredEventsByName('SHOT', 'pt')
    
    ');
    
    >>> found = client.searchDeclaredEventsByUniqueID('SHOT', 'pt')
    
    ');
    
    >>> found = client.searchDeclaredEventsByDescription('SHOT')
    
    ');
    
    >>> found = client.searchDeclaredEventsByDescription('SHOT', 'pt')
    
    ');
    
    >>> for item in found:
    >>>     
        print 'item', item
    >>> max = client.searchMaxEventNumber('0x0000')
    
    >>> min = client.searchMinEventNumber('0x0000')
    

    Search parametersEdit section

    parametersFound = client.searchParametersByName('DENS')
    
    parametersFound = client.searchParametersByName('DENS', 'pt')
    
    parametersFound = client.searchParametersByUniqueID('DENS')
    
    for p in parametersFound:
        print p['descriptorUID']['uniqueID']
    

    Search data

    This function returns the parameters unique identifiers where the data isn’t null for the selected event:

    dataFound = client.searchDataByEvent('0x0000', 17898)
    for d in dataFound:
        print d
    

    Version from 14:53, 3 Jul 2018

    This revision modified by aduarte (Ban)

    ...

    In a the python interpreter:

    >>> from sdas.core.client.SDASClient import SDASClient
    >>> from sdas.core.SDAStime import Date, Time, TimeStamp
    >>> host='baco.ipfn.ist.utl.pt'
    >>> port=8888
    >>> client = SDASClient(host,port)
    

    ...

    >>> found = client.searchDeclaredEventsByName('S');
    
    >>> found = client.searchDeclaredEventsByName('SHOT', 'pt');
    
    >>> found = client.searchDeclaredEventsByUniqueID('SHOT', 'pt');
    
    >>> found = client.searchDeclaredEventsByDescription('SHOT');
    
    >>> found = client.searchDeclaredEventsByDescription('SHOT', 'pt');
    
    >>> for item in found:
    >>>     print 'item', item
    >>> max = client.searchMaxEventNumber('0x0000')
    
    >>> min = client.searchMinEventNumber('0x0000')
    

    Version as of 15:22, 3 Jul 2018

    This revision modified by aduarte (Ban)

    ...

    found = client.searchDeclaredEventsByName('S')
    
    found = client.searchDeclaredEventsByName('SHOT', 'pt')
    
    found = client.searchDeclaredEventsByUniqueID('SHOT', 'pt')
    
    found = client.searchDeclaredEventsByDescription('SHOT')
    
    found = client.searchDeclaredEventsByDescription('SHOT', 'pt')
    
    for item in found:
        print 'item', item
    max = client.searchMaxEventNumber('0x0000')
    
    min = client.searchMinEventNumber('0x0000')
    

    Search parametersEdit section

    parametersFound = client.searchParametersByName('DENS')
    
    parametersFound = client.searchParametersByName('DENS', 'pt')
    
    parametersFound = client.searchParametersByUniqueID('DENS')
    
    for p in parametersFound:
        print p['descriptorUID']['uniqueID']
    

    Search data

    This function returns the parameters unique identifiers where the data isn’t null for the selected event:

    dataFound = client.searchDataByEvent('0x0000', 17898)
    for d in dataFound:
        print d
    
    Powered by MindTouch Core