TrackingApolloniusIHEP_CSV
Documentation for TrackingApolloniusIHEP_CSV.
TrackingApolloniusIHEP_CSV
iRods
Tracking_Apollonius_IHEP_CSV.Irods.imeta_add — Methodimeta_add(name::String, attr::String, value::String)Use the imeta add -d Irods command
Arguments
name::String: DATA_NAMEattr::String: ATTR_NAMEvalue::String: ATTR_VALUE
Tracking_Apollonius_IHEP_CSV.Irods.imeta_ls — Methodimeta_ls(name::String) -> DictUse 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
Tracking_Apollonius_IHEP_CSV.Irods.iquest — Method iquest(;select::String, where::String) -> DictUse 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 selectwhere::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 ```
Tracking_Apollonius_IHEP_CSV.Irods.@imeta_add — Macro@imeta_add(name, attr)Use the imeta add -d Irods command
Arguments
name: DATA_NAMEattr: The variable name is used as ATTRNAME and its value as ATTRVALUE
For more information see shell> imeta -h