Difference between revisions of "CCDB 1.00"

From GlueXWiki
Jump to: navigation, search
(Created page with "CCDB 1.00 release notes == Information about files and mktbl from file == It is usual situation when one already has data file and want to create table to store it. <code>mktb...")
 
Line 31: Line 31:
 
</pre>
 
</pre>
  
Info command also have '''-f''' flag not. <code> info -f </code> gives the info of text files. Or, how CCDB view on it.  
+
'''-f''' flag added to Info command also. <code> info -f </code> gives the info of text files, how CCDB sees it.  
  
 
<pre>
 
<pre>

Revision as of 15:58, 11 April 2014

CCDB 1.00 release notes


Information about files and mktbl from file

It is usual situation when one already has data file and want to create table to store it. mktbl -f helps with this


> mktbl /test/haha -f python/tests/test_table.txt #my lonely comment
The command to create table: 

mktbl /test/haha -r 2 X Y Z #my lonely comment

Comments in file: 
Test assignment for software tests

Now one can copy it and run. It is not done automatically to be sure the values are reviewed.

The file is:

#Test assignment for software tests
#& X            Y            Z
  2.2          2.3          2.4         
  2.5          2.6          2.7     

You may notice that line with column names starts with #& while normal comments starts with plain #

One can use column types right there:

#& X=int            Y=int            NOT_Z=string

-f flag added to Info command also. info -f gives the info of text files, how CCDB sees it.

 ~/halld/ccdb/trunk $ ccdb info -f $CCDB_HOME/python/tests/test_table.txt
Rows: 2
Columns: 3
Column names:
    X
    Y
    Z

Comments in file: 
Test assignment for software unit tests

Type 'ccdb mktbl -f /home/romanov/halld/ccdb/trunk/python/tests/test_table.txt' to see how to create a table for the file
Type 'ccdb add <table name> /home/romanov/halld/ccdb/trunk/python/tests/test_table.txt #<comments>' to add the file to existing table (rows and columns must consist)