Skip to content

Commit

Permalink
Remove prefix, spectrum_directory and archive_directory from spectrum…
Browse files Browse the repository at this point in the history
…_info_dict
  • Loading branch information
Antonia Beteva committed Aug 28, 2024
1 parent 8df43cd commit 8f35a65
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions mxcubecore/HardwareObjects/abstract/AbstractXRFSpectrum.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,6 @@ def start_spectrum(
self.spectrum_info_dict = {"sessionId": session_id, "blSampleId": blsample_id}
integration_time = integration_time or self.default_integration_time
self.spectrum_info_dict["exposureTime"] = integration_time
self.spectrum_info_dict["prefix"] = prefix
self.spectrum_info_dict["filename"] = ""
# Create the data and the archive directory (if needed) and files
if data_dir:
Expand All @@ -102,7 +101,6 @@ def start_spectrum(
return False
filename = self.get_filename(data_dir, prefix)
self.spectrum_info_dict["filename"] = filename + "." + self.file_suffix
self.spectrum_info_dict["spectrum_directory"] = os.path.dirname(filename)
if archive_dir:
if not self.create_directory(archive_dir):
self.update_state(self.STATES.FAULT)
Expand All @@ -114,7 +112,6 @@ def start_spectrum(
self.spectrum_info_dict["jpegScanFileFullPath"] = filename + ".png"
self.spectrum_info_dict["annotatedPymcaXfeSpectrum"] = filename + ".html"
self.spectrum_info_dict["fittedDataFileFullPath"] = filename + "_peaks.csv"
self.spectrum_info_dict["archive_directory"] = archive_dir

self.spectrum_info_dict["startTime"] = time.strftime("%Y-%m-%d %H:%M:%S")
self.update_state(self.STATES.BUSY)
Expand Down

0 comments on commit 8f35a65

Please sign in to comment.