Closed NathandB94 closed 8 months ago
Can we skip XYZ's that are empty for the aspect ratio calculation?
CA:A-Ratios-INFO: Attempting to calculate Aspect Ratios... CA:A-Ratios-INFO: Options:: AR: True CDA: False Checked: None Selected: [] Auto Plot: False CA:GUI-INFO: Started Calculations... /Users/Nathan/Documents/GitHub/crystalaspects/src/crystalaspects/analysis/shape_analysis.py:71: UserWarning: loadtxt: input contained no data: "/Volumes/Nathan SSD/CHA/20240204_110040/XYZ_files/CHA_Rhom_49_ovito_CGvisualiser.XYZ" xyz = np.loadtxt(filepath, skiprows=2) Traceback (most recent call last): File "/Users/Nathan/Documents/GitHub/crystalaspects/src/crystalaspects/analysis/gui_threads.py", line 98, in run xyz_df = ar.collect_all( ^^^^^^^^^^^^^^^ File "/Users/Nathan/Documents/GitHub/crystalaspects/src/crystalaspects/analysis/ar_dataframes.py", line 217, in collect_all shape.set_xyz(filepath=file) File "/Users/Nathan/Documents/GitHub/crystalaspects/src/crystalaspects/analysis/shape_analysis.py", line 39, in set_xyz if xyz_vals.shape[1] == 3:
IndexError: tuple index out of range
should be addressed now
Can we skip XYZ's that are empty for the aspect ratio calculation?
CA:A-Ratios-INFO: Attempting to calculate Aspect Ratios... CA:A-Ratios-INFO: Options:: AR: True CDA: False Checked: None Selected: [] Auto Plot: False CA:GUI-INFO: Started Calculations... /Users/Nathan/Documents/GitHub/crystalaspects/src/crystalaspects/analysis/shape_analysis.py:71: UserWarning: loadtxt: input contained no data: "/Volumes/Nathan SSD/CHA/20240204_110040/XYZ_files/CHA_Rhom_49_ovito_CGvisualiser.XYZ" xyz = np.loadtxt(filepath, skiprows=2) Traceback (most recent call last): File "/Users/Nathan/Documents/GitHub/crystalaspects/src/crystalaspects/analysis/gui_threads.py", line 98, in run xyz_df = ar.collect_all( ^^^^^^^^^^^^^^^ File "/Users/Nathan/Documents/GitHub/crystalaspects/src/crystalaspects/analysis/ar_dataframes.py", line 217, in collect_all shape.set_xyz(filepath=file) File "/Users/Nathan/Documents/GitHub/crystalaspects/src/crystalaspects/analysis/shape_analysis.py", line 39, in set_xyz if xyz_vals.shape[1] == 3: