TrackingApolloniusIHEP_CSV

Documentation for TrackingApolloniusIHEP_CSV.

TrackingApolloniusIHEP_CSV

iRods

Tracking_Apollonius_IHEP_CSV.Irods.imeta_addMethod
imeta_add(name::String, attr::String, value::String)

Use the imeta add -d Irods command

Arguments

  • name::String: DATA_NAME
  • attr::String: ATTR_NAME
  • value::String: ATTR_VALUE
Note

For more information see shell> imeta -h

source
Tracking_Apollonius_IHEP_CSV.Irods.imeta_lsMethod
imeta_ls(name::String) -> Dict

Use the imeta ls -d Irods command.

Return a Dict with as keys the Atrribute Names and as values the Atributes Values.

Arguments

  • name::String: DATA_NAME
Note

For more information see shell> imeta -h

source
Tracking_Apollonius_IHEP_CSV.Irods.iquestMethod
 iquest(;select::String, where::String) -> Dict

Use the iquest --no-page Irods command.

Each values for a given key is a vector; The length of the vector is equal to the number of selections found. (An empty vector means no selections has been found)

Arguments

  • select::String: Attributes to select
  • where::String: Conditions

!!! note For more information see shell> iquest -h

Example (could not give the same results if the file does not exist anymore or if metada have been changed.)

``` julia> irodsdir = "/ccin2p3/home/comet/permanent/lebrun/TrackFinding/yaozhang/data/signalhitSingle" julia> d = Irods.iquest(select="COLLID, METADATAATTRNAME, METADATAATTRVALUE, COLLNAME, DATANAME", where="COLLNAME = 'irodsdir'"); julia> for (f1, f2, f3) in zip(d["DATANAME"], d["METADATAATTRNAME"], d["METADATAATTRVALUE"]) println(f1, " => ", f2, " = ", f3) end newgridsapollonius-prod-divconquer-iter3-v10-Yaofile-6754-signalhitSingle001.jld2.gz => cellradius1 = [18.0, 18.0, 3.0, 75.0] newgridsapollonius-prod-divconquer-iter3-v10-Yaofile-6754-signalhitSingle001.jld2.gz => cellradius2 = [1.5, 1.5, 0.25, 15.0] newgridsapollonius-prod-divconquer-iter3-v10-Yaofile-6754-signalhitSingle001.jld2.gz => cellradius3 = [0.3, 0.3, 0.05, 15.0] ...

julia> d = Irods.iquest(select="COLLID, METADATAATTRNAME, METADATAATTRVALUE, COLLNAME, DATANAME", where="COLLNAME = 'irods_dir' and METADATAATTRVALUE = 'Apollonius'"); julia> d Dict{Any, Any} with 5 entries: "METADATAATTRVALUE" => SubString{String}["Apollonius"] "METADATAATTRNAME" => SubString{String}["type"] "COLLNAME" => SubString{String}["/ccin2p3/home/comet/permanent/lebrun/TrackFinding/yaozhang/data/signalhitSingle"] "COLLID" => SubString{String}["35716499"] "DATANAME" => SubString{String}["newgridsdivconquer-iter3-v10-Yaofile-6754-signalhitSingle_001v10-20231122T210134783.jld2.gz"]

julia> collid = eval(Meta.parse(d["COLLID"][1])) 35716499 ```

source

Index