@@ -17,7 +17,7 @@ def create_parser():
17
17
help = "Directory containing experimental data. Defaults to current working directory." )
18
18
parser .add_argument ('-o' , '--output-directory' , type = str ,
19
19
help = "The directory where the results will be written. Defaults to '<input_directory/snmf_results>'." )
20
- parser .add_argument ('t' , '--data-type' , type = str , choices = ALLOWED_DATA_TYPES ,
20
+ parser .add_argument ('t' , '--data-type' , type = str , default = None , choices = ALLOWED_DATA_TYPES ,
21
21
help = "The type of the experimental data." )
22
22
parser .add_argument ('-l' , '--lift-factor' , type = float , default = 1 ,
23
23
help = "The lifting factor. Data will be lifted by lifted_data = data + abs(min(data) * lift). Default is 1." )
@@ -33,7 +33,7 @@ def main():
33
33
if args .input_directory is None :
34
34
args .input_directory = Path .cwd ()
35
35
grid , data_input = load_input_signals (args .input_directory )
36
- lifed_data_input = lift_data (data_input , args .lift_factor )
37
- variables = initialize_variables (lifed_data_input ,args .number_of_components ,data_type = 'pdf' )
36
+ lifted_data_input = lift_data (data_input , args .lift_factor )
37
+ variables = initialize_variables (lifted_data_input ,args .number_of_components ,args . data_type )
38
38
components = initialize_components (variables ['number_of_components' ],variables ['number_of_signals' ],grid )
39
- return 0
39
+ return components
0 commit comments