[BUG] Edit numerical-value RegEx when reading in multiple sets #276

Closed
opened 2024-06-28 06:51:10 +00:00 by saeckech · 5 comments
Member

Current behavior

When reading in multiple sets and using the RegEx option to assign values, I noticed a case my expression did not cover. However, you cannot change the expression after reading in the first set.

Version

2024-06-24

Expected behavior

No response

Steps to reproduce

No response

Log messages

No related messages

Anything else?

value of the case outside the RegEx expression defaulted to zero.

  • datasets are named [...]TAU0p0001s.txt; [...]TAU7e-05s.txt; [...]TAU8p12345e-05s.txt
  • first RegEx "_TAU\dp?[e-]{0,2}\d+s" missed the last set. New RegEx "_TAU\dp?\d*[e-]{0,2}\d+s" works as expected.
### Current behavior When reading in multiple sets and using the RegEx option to assign values, I noticed a case my expression did not cover. However, you cannot change the expression after reading in the first set. ### Version 2024-06-24 ### Expected behavior _No response_ ### Steps to reproduce _No response_ ### Log messages ```shell No related messages ``` ### Anything else? value of the case outside the RegEx expression defaulted to zero. - datasets are named [...]TAU0p0001s.txt; [...]TAU7e-05s.txt; [...]TAU8p12345e-05s.txt - first RegEx "_TAU\dp?[e-]{0,2}\d+s" missed the last set. New RegEx "_TAU\dp?\d*[e-]{0,2}\d+s" works as expected.
saeckech added the
Kind/Bug
label 2024-06-28 06:51:10 +00:00
Member

RegEx "_TAU\dp?[e-]{0,2}\d+s" cannot match your last entry. But this is your custom RegEx, so not my problem, the default one should be able to match.

RegEx "_TAU\dp?[e-]{0,2}\d+s" cannot match your last entry. But this is your custom RegEx, so not my problem, the default one should be able to match.
Author
Member

Its not about the RegEx, but about being able to change it while multiple sets are queued for read-in.

Its not about the RegEx, but about being able to change it while multiple sets are queued for read-in.
saeckech reopened this issue 2024-06-28 08:15:26 +00:00
Member

My misunderstanding then. But everything works as intended:

  • If "skip next dialogue" is not checked, I can change the regular expression between sets.
  • If it is checked, the same arguments are used for all files.
My misunderstanding then. But everything works as intended: - If "skip next dialogue" is not checked, I can change the regular expression between sets. - If it is checked, the same arguments are used for all files.
Author
Member

" If "skip next dialogue" is not checked, I can change the regular expression between sets."
oddly, this I cannot

Correction: I was mistaken: the expression can be changed, the cursor position is simply not displayed when single-clicking into the field.
Addition to Correction: this seems to depend on whether the expression was edited for one of the previous sets

" If "skip next dialogue" is not checked, I can change the regular expression between sets." oddly, this I cannot Correction: I was mistaken: the expression can be changed, the cursor position is simply not displayed when single-clicking into the field. Addition to Correction: this seems to depend on whether the expression was edited for one of the previous sets
Author
Member

To reproduce:

  1. during read in of the first set with RegEx "_TAU\dp?\d*[e-]{0,2}\d+s", mark any section of the RegEx, click OK
  2. cursor is not displayed upon single-clicking into the RegEx field for the read-in of the second or subsequent sets.
To reproduce: 1. during read in of the first set with RegEx "_TAU\dp?\d*[e-]{0,2}\d+s", mark any section of the RegEx, click OK 2. cursor is not displayed upon single-clicking into the RegEx field for the read-in of the second or subsequent sets.
Sign in to join this conversation.
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: IPKM/nmreval#276
No description provided.