neutrons / PyVDrive

A data reduction and analysis software for (SNS) VULCAN based on PyQt.
2 stars 0 forks source link

Enable auto reduction to reduce #207

Closed wdzhou closed 5 years ago

wdzhou commented 5 years ago

Expand the patch_list in order to solve issue reported by Yan on 06/29.

The changes in these logs will be made as a patch to the following code at (about) line 1717.

    def _export_experiment_log(self, target_file, sample_name_list,
                               sample_title_list, sample_operation_list, patch_list):
       ... ...
        # write
        try: 
            mantidsimple.ExportExperimentLog(InputWorkspace=self._dataWorkspaceName,
                                             OutputFilename=target_file,
                                             FileMode=file_write_mode,
                                             SampleLogNames=sample_name_list,
                                             SampleLogTitles=sample_title_list,
                                             SampleLogOperation=sample_operation_list,
                                             TimeZone="America/New_York",
                                             OverrideLogValue=patch_list,
                                             OrderByTitle='RUN',
                                             RemoveDuplicateRecord=True)

And class PatchRecordHDF5(object) will be eventually modified to adapt the change.