mne-python icon indicating copy to clipboard operation
mne-python copied to clipboard

Fields `proj_id`, `proj_name`

Open LaurentLM opened this issue 7 months ago • 1 comments

Hello,

I am trying to make use of the proj_id and proj_name fields from the info structure. It seems those are protected fields and cannot be set by directly writing in the dictionary (info['proj_id'] = 12345).

I cannot find setter functions for those fields, and I was wondering if I'm missing something or if this is a missing feature.

LaurentLM avatar May 18 '25 18:05 LaurentLM

@LaurentLM I think so far nobody has asked for the ability to set these even though they do show up in the info docs. Would you be up for making a PR to allow setting them? Presumably for proj_name for example we can use whatever safe setter/getter we use for info["description"], which is also a string. For proj_id (which needs to be an int) it might take a bit more work...

larsoner avatar May 21 '25 13:05 larsoner