Getting character string from TLeaf

I am attempting to read in a character string from a leaf in a branch into python. If the value is a number, then I can read it without a problem

I can’t do the same for character strings.

my_string = tree.GetLeaf("some_character_string").GetValue() sets my_string to a double.
When I open the tree TBrowsers then some_character_stringdoes have the proper text.

How do I read a character string from a tree into python?


does:my_string = tree.some_character_stringnot work for you?


Hi Wim,

That’s what I was I was looking for.

Thank you!