Skip to content
Snippets Groups Projects

Fix bug on RT130 that wrongly giving warning box when some DS is selected with RAW/TPS checked

Merged Lan Dam requested to merge i284_detect_no_data_stream_selected into develop
1 unresolved thread

closes #284 (closed)

Move detect_data_type before get_requested_wf_chans because the later requires data_type.

Edited by Lan Dam

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • assigned to @ldam

  • Lan Dam requested review from @kienle

    requested review from @kienle

  • Lan Dam changed title from move detect_data_type before get_reauested_wf_chans because the later requires data_type to move detect_data_type before get_requested_wf_chans because the later requires data_type

    changed title from move detect_data_type before get_reauested_wf_chans because the later requires data_type to move detect_data_type before get_requested_wf_chans because the later requires data_type

  • Lan Dam changed milestone to %2024.3.1.0

    changed milestone to %2024.3.1.0

  • Rename this merge request to make clear what problem it solves.

  • Lan Dam changed title from move detect_data_type before get_requested_wf_chans because the later requires data_type to Fix bug on RT130 that wrongly giving warning box when some DS is selected with RAW/TPS checked

    changed title from move detect_data_type before get_requested_wf_chans because the later requires data_type to Fix bug on RT130 that wrongly giving warning box when some DS is selected with RAW/TPS checked

  • Lan Dam changed the description

    changed the description

  • Kien Le approved this merge request

    approved this merge request

    • Author Maintainer

      @kienle The solution in here though fixing the bug but checking size of folder after detecting data_type. Detecting data_type might take a long time, so it delay the result of checking size of folder.

      Before my vacation, you said you are going to review the whole process of this. Do you still want to do that?

    • Let me get back to you on this. I took a look at this around the start of your vacation, and I don't remember much of what I did. I'll have to look through my notes.

    • My note said that check_folders_size() can be rewritten to not need the requested waveform channels. This would allow it to be called before the data type is detected. An optimization you did would be removed, though, so the performance might suffer. I haven't checked to see if the slowdown is noticeable, however. I'll do that now.

    • I just tested and it looked like currently, the time spent on checking the size of a folder isn't that long. This can be merged I think.

    • Author Maintainer

      The reason I want you to look at that not because time of checking folder size, but the time for detecting data_type might take long that delay the process of checking size so user have to wait for long before they know if the size is big or not.

      However, we can merge this for now and may look back to revise this later.

    • My thought about this is that we can rewrite check_folders_size() to not use the waveform channels input from the user. That way, we can move that function before detecting the data type. The performance decrease is not going to be significant because check_folders_size already runs pretty quickly, so I think this is the best course of action.

      Edited by Kien Le
    • Author Maintainer

      I will look into it next week.

    • Please register or sign in to reply
  • Lan Dam added 11 commits

    added 11 commits

    Compare with previous version

  • Lan Dam enabled an automatic merge when the pipeline for 1e351acb succeeds

    enabled an automatic merge when the pipeline for 1e351acb succeeds

  • Lan Dam mentioned in commit f0c7ffe8

    mentioned in commit f0c7ffe8

  • merged

Please register or sign in to reply
Loading