@@ -17,7 +17,7 @@ def create_parser():
1717 help = "Directory containing experimental data. Defaults to current working directory." )
1818 parser .add_argument ('-o' , '--output-directory' , type = str ,
1919 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 ,
2121 help = "The type of the experimental data." )
2222 parser .add_argument ('-l' , '--lift-factor' , type = float , default = 1 ,
2323 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():
3333 if args .input_directory is None :
3434 args .input_directory = Path .cwd ()
3535 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 )
3838 components = initialize_components (variables ['number_of_components' ],variables ['number_of_signals' ],grid )
39- return 0
39+ return components
0 commit comments