25
25
from hexsample .fileio import DigiInputFile , DigiInputFileSparse , DigiInputFileRectangular ,\
26
26
DigiInputFileCircular , ReconInputFile , ReconOutputFile ,FileType ,\
27
27
DigiOutputFile , DigiOutputFileSparse , DigiOutputFileRectangular , DigiOutputFileCircular ,\
28
- peek_file_type , peek_readout_type , open_input_file , _digioutput_class
28
+ peek_file_type , peek_readout_type , open_input_file , digioutput_class
29
29
from hexsample .mc import MonteCarloEvent
30
30
from hexsample .roi import RegionOfInterest , Padding
31
31
@@ -61,7 +61,7 @@ def _test_write(file_path, num_events : int = 10):
61
61
"""Small test writing a bunch of toy event structures to file.
62
62
This test considers a rectangular type of readout.
63
63
"""
64
- output_file = _digioutput_class (HexagonalReadoutMode .RECTANGULAR )(file_path )
64
+ output_file = digioutput_class (HexagonalReadoutMode .RECTANGULAR )(file_path )
65
65
for i in range (num_events ):
66
66
output_file .add_row (_digi_event_rectangular (i ), _mc_event (i ))
67
67
output_file .close ()
@@ -70,7 +70,7 @@ def _test_write_sparse(file_path, num_events : int = 10):
70
70
"""Small test writing a bunch of toy event structures to file.
71
71
This test considers a sparse type of readout.
72
72
"""
73
- output_file = _digioutput_class (HexagonalReadoutMode .SPARSE )(file_path )
73
+ output_file = digioutput_class (HexagonalReadoutMode .SPARSE )(file_path )
74
74
for i in range (num_events ):
75
75
output_file .add_row (_digi_event_sparse (i ), _mc_event (i ))
76
76
output_file .close ()
@@ -79,7 +79,7 @@ def _test_write_circular(file_path, num_events : int = 10):
79
79
"""Small test writing a bunch of toy event structures to file.
80
80
This test considers a sparse type of readout.
81
81
"""
82
- output_file = _digioutput_class (HexagonalReadoutMode .CIRCULAR )(file_path )
82
+ output_file = digioutput_class (HexagonalReadoutMode .CIRCULAR )(file_path )
83
83
for i in range (num_events ):
84
84
output_file .add_row (_digi_event_circular (i ), _mc_event (i ))
85
85
output_file .close ()
0 commit comments