Esempio n. 1
0
def _set_column(crate, name, val):
    """
    checked for new crates
    """
    col = pycrates.CrateData()
    col.name = name.upper()
    col.values = numpy.array(val)
    pycrates.add_col(crate, col)
Esempio n. 2
0
def _set_column(crate, name, val):
    """
    checked for new crates
    """
    col = pycrates.CrateData()
    col.name = name.upper()
    col.values = numpy.array(val)
    pycrates.add_col(crate, col)
Esempio n. 3
0
 def create_col(cname, cval):
     store[cname] = crates.CrateData()
     store[cname].name = cname
     if 1 != store[cname].load(cval, 1):
         raise RuntimeError, "Unable to add column %s to the Crate Data object." % cname
     if 1 != crates.add_col(cr, store[cname]):
         raise RuntimeError, "Unable to add column %s to the Crates." % cname
Esempio n. 4
0
 def create_col(cname, cval):
     store[cname] = crates.CrateData()
     store[cname].name = cname
     if 1 != store[cname].load(cval, 1):
         raise RuntimeError, "Unable to add column %s to the Crate Data object." % cname
     if 1 != crates.add_col(cr, store[cname]):
         raise RuntimeError, "Unable to add column %s to the Crates." % cname
Esempio n. 5
0
def _set_column(crate, col, name, val):
    col.name = name.upper()
    col.set_nsets( len(val) )
    col.set_values( numpy.asarray(val) )    
    pycrates.add_col(crate, col)