Skip to content

Commit

Permalink
More work on fix for FT-IR scans (3)
Browse files Browse the repository at this point in the history
  • Loading branch information
thomas-marsh committed Jan 16, 2024
1 parent 01f666e commit 7552084
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 10 deletions.
Binary file modified JISA.jar
Binary file not shown.
11 changes: 1 addition & 10 deletions src/jisa/devices/spectrometer/Bruker70v.java
Original file line number Diff line number Diff line change
Expand Up @@ -38,16 +38,7 @@ public String takeScan(String[] scan_params) throws Exception {
System.out.println(response);
String unload = super.sendRequest("UNLOAD_FILE " + save_path + sample_name + ".0");
System.out.println(unload);
int name_len = sample_name.length();
String second_to_last = sample_name.substring(name_len - 2, name_len - 1);
if (second_to_last.equals("_")) {
int cur_num = Integer.parseInt(sample_name.substring(name_len-1)) + 1;
scan_params[1] = sample_name.substring(0, name_len - 1) + cur_num;
}
else {
scan_params[1] = scan_params[1] + "_2";
}
System.out.println(scan_params[1]);
Thread.sleep(100);
return takeScan(scan_params);
}
else {
Expand Down

0 comments on commit 7552084

Please sign in to comment.