Skip to content
Snippets Groups Projects

add logIdx to the downsample function

Merged Lan Dam requested to merge add-logIdx into master
2 unresolved threads

logIdx which is index of line in the SOH messages is in data structure of sohview's reftek. Now we need to add it to trim_downsample function so the data output for plotting contains logIdx because this will be needed to highlight the corresponding SOH messages' line in the display.

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
  • Kien Le
  • Kien Le
  • Lan Dam added 1 commit

    added 1 commit

    • 10bc064f - merge chunk_minmax and chunk_minmax_logIdx into one function chunk_minmax

    Compare with previous version

  • Lan Dam added 2 commits

    added 2 commits

    • 915cb488 - handling_data.py: modify to keep header of downsample() unchanged, remove...
    • 6b12c0e4 - add unittest that involve in logIdx for handling_data's functions

    Compare with previous version

  • Kien Le
    Kien Le @kienle started a thread on an outdated change in commit 6b12c0e4
  • 301
    302
    303 class TestTrimDownsampleSohChan_with_logidx(TestCase):
    304 def setUp(self) -> None:
    305 self.channel_info = {}
    306 self.org_trace = {
    307 'times': np.arange(1000),
    308 'data': np.arange(1000),
    309 'logIdx': np.arange(1000)
    310 }
    311 self.channel_info['orgTrace'] = self.org_trace
    312 self.start_time = 250
    313 self.end_time = 750
    314 self.first_time = False
    315
    316 def test_mseed_time_range_does_not_overlap_times_data(self):
  • Kien Le
    Kien Le @kienle started a thread on an outdated change in commit 6b12c0e4
  • 310 }
    311 self.channel_info['orgTrace'] = self.org_trace
    312 self.start_time = 250
    313 self.end_time = 750
    314 self.first_time = False
    315
    316 def test_mseed_time_range_does_not_overlap_times_data(self):
    317 self.start_time = 2000
    318 self.end_time = 3000
    319 trim_downsample_SOHChan(self.channel_info, self.start_time,
    320 self.end_time, self.first_time)
    321 self.assertEqual(self.channel_info['times'].size, 0)
    322 self.assertEqual(self.channel_info['data'].size, 0)
    323 self.assertEqual(self.channel_info['logIdx'].size, 0)
    324
    325 def test_mseed_processed_data_is_stored_in_appropriate_location(self):
  • Kien Le
  • Kien Le
  • Kien Le
  • Lan Dam added 2 commits

    added 2 commits

    • 3381ce0b - modify return args from downsample in trim_downsample_SOHChan
    • 0cf30baa - add test argument passed to function, add tests that Kien wrote in \!27 (closed) as his...

    Compare with previous version

  • Lan Dam added 1 commit

    added 1 commit

    • 08c3d0f5 - fix bug in test_handling_data to test arguments sent to downsample()

    Compare with previous version

  • Lan Dam added 2 commits

    added 2 commits

    • f8f00282 - remove 'mseed' from test fuctions' names
    • 70cda911 - change name from test_handling_data to test_handling_data_trim_downsample to...

    Compare with previous version

  • Lan Dam added 9 commits

    added 9 commits

    Compare with previous version

  • Lan Dam mentioned in commit a368be56

    mentioned in commit a368be56

  • merged

  • Please register or sign in to reply
    Loading