-
Notifications
You must be signed in to change notification settings - Fork 6
Error "AssertionError: The length of datasets were not the same!"
Full error message:
python 1_build_database.py Traceback (most recent call last): File "1_build_database.py", line 66, in <module> group.prepareData(keep_intensity=False) File "/home/sven/MILK/MILK/data/generateGroup.py", line 78, in prepareData prepareData.main(filename = self.filename,keep_intensity=keep_intensity) File "/home/sven/MILK/MILK/data/prepareData.py", line 90, in main linesTfile = swap_datasets(linesTfile, data_files) File "/home/sven/MILK/MILK/data/prepareData.py", line 52, in swap_datasets assert len(datasetsold) == len(datasets), 'The length of datasets were not the same!' AssertionError: The length of datasets were not the same!
You can open the offending piece of MILK code, in this case "/home/sven/MILK/MILK/data/prepareData.py" and navigate to line 52. Inspecting the subfunction swap_datasets indicates the data is swapped out from template to actual data. Therefore, this indicates a problem between the template file used and the data to be analyzed. Best is to use MAUD and the HIPPO wizard to make a new template file to which dataset.json points to.