Skip to content

Commit

Permalink
Fix test sm file test
Browse files Browse the repository at this point in the history
Set micro_times to defined
value
  • Loading branch information
tpeulen committed Sep 17, 2024
1 parent 777a522 commit 3083958
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
4 changes: 4 additions & 0 deletions src/TTTR.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -327,6 +327,10 @@ int TTTR::read_sm_file(const char *filename){

// Read and interpret the 16-bit detector
routing_channels[i] = readBigEndian16(record + 8);

// Set micro time to default value
micro_times[i] = 0;

}

return 0;
Expand Down
1 change: 1 addition & 0 deletions test/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"ptu_hh_t2_filename" : "./tttr-data/pq/ptu/pq_ptu_hh_t2.ptu",
"ptu_hh_t3_filename" : "./tttr-data/pq/ptu/pq_ptu_hh_t3.ptu",
"ht3_clsm_filename" : "./tttr-data/imaging/pq/ht3/pq_ht3_clsm.ht3",
"sm_filename" : "./tttr-data/sm/tl_sm.sm",
"make_references": false,
"test_files": [
["./tttr-data/bh/bh_spc132.spc", "SPC-130"],
Expand Down
3 changes: 2 additions & 1 deletion test/test_TTTR.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ class Tests(unittest.TestCase):
(settings["photon_hdf_filename"], 'PHOTON-HDF5'),
(settings["ht3_clsm_filename"], 'HT3'),
(settings["ptu_hh_t2_filename"], 'PTU'),
(settings["ptu_hh_t3_filename"], 'PTU')
(settings["ptu_hh_t3_filename"], 'PTU'),
(settings["sm_filename"], 'SM')
]

def test_append_event(self):
Expand Down

0 comments on commit 3083958

Please sign in to comment.