Skip to content

Commit

Permalink
Rename enum
Browse files Browse the repository at this point in the history
  • Loading branch information
alchemistmatt committed Mar 7, 2020
1 parent 78590d6 commit ce57282
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 11 deletions.
6 changes: 3 additions & 3 deletions C#_Version/DeconEngine/DTAGeneration/DTAGeneration.cs
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ public DTAProcessor()
IsolationWindowSize = 3;
ConsiderMultiplePrecursors = false;
DoCentroidMSn = false;
DatasetType = FileType.FINNIGAN;
DatasetType = FileType.THERMORAW;
IsProfileDataForMzXML = false;
_firstScanWritten = false;
}
Expand Down Expand Up @@ -1016,7 +1016,7 @@ public bool ContainsProfileData(int parentScan)

public bool IsZoomScan(int parentScan)
{
if (DatasetType == FileType.FINNIGAN)
if (DatasetType == FileType.THERMORAW)
return RawDataDTA.IsZoomScan(parentScan);

return false;
Expand All @@ -1029,7 +1029,7 @@ public int GetSpectraType(int msNScanNumber)

public bool IsFTData(int parentScan)
{
if (DatasetType == FileType.FINNIGAN)
if (DatasetType == FileType.THERMORAW)
return RawDataDTA.IsFTScan(parentScan);
else if (DatasetType == FileType.MZXMLRAWDATA)
{
Expand Down
2 changes: 1 addition & 1 deletion C#_Version/DeconEngine/Readers/FinniganRawData.cs
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ internal class FinniganRawData : RawData
[Obsolete("Only used by DeconTools for ICR2LSRun and IMFRun; BrukerV2 exists, but has no use path", false)]
public override FileType GetFileType()
{
return FileType.FINNIGAN;
return FileType.THERMORAW;
}

[Obsolete("Only used by DeconTools for ICR2LSRun and IMFRun; BrukerV2 exists, but has no use path", false)]
Expand Down
6 changes: 3 additions & 3 deletions C#_Version/DeconEngine/Readers/ReaderFactory.cs
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ public static RawData GetRawData(FileType fileType, string fileName)
rawData.Load(fileName);
break;
#pragma warning restore 618
case FileType.FINNIGAN:
case FileType.THERMORAW:
rawData = new ThermoRawData();
rawData.Load(fileName);
break;
Expand Down Expand Up @@ -117,7 +117,7 @@ public static void GetRawData(out RawData rawData, FileType fileType)
rawData = new AgilentRawData();
#endif
break;
case FileType.FINNIGAN:
case FileType.THERMORAW:
rawData = new ThermoRawData();
break;
case FileType.SUNEXTREL:
Expand Down Expand Up @@ -168,7 +168,7 @@ public static RawData GetRawData(FileType fileType)
rawData = new AgilentRawData();
#endif
break;
case FileType.FINNIGAN:
case FileType.THERMORAW:
rawData = new ThermoRawData();
break;
case FileType.SUNEXTREL:
Expand Down
2 changes: 1 addition & 1 deletion C#_Version/DeconEngine/Readers/ThermoRawData.cs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ internal class ThermoRawData : RawData
[Obsolete("Only used by DeconTools for ICR2LSRun and IMFRun; BrukerV2 exists, but has no use path", false)]
public override FileType GetFileType()
{
return FileType.FINNIGAN;
return FileType.THERMORAW;
}

[Obsolete("Only used by DeconTools for ICR2LSRun and IMFRun; BrukerV2 exists, but has no use path", false)]
Expand Down
6 changes: 3 additions & 3 deletions C#_Version/DeconEngine/clsProcRunner.cs
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ private Results.clsTransformResults CreateTransformResults(string fileName, File
// while the thresholded parameter is already set in the clsPeakProcessParameters, we would
// like to override that here if the data type is Finnigan because that data is threshold.
bool thresholded;
if (fileType == FileType.FINNIGAN ||
if (fileType == FileType.THERMORAW ||
fileType == FileType.MZXMLRAWDATA)
thresholded = true;
else
Expand Down Expand Up @@ -656,7 +656,7 @@ public void CreateDTAFile()
var dotIndex = FileName.IndexOf('.');
var inputFileFormat = FileName.Remove(0, dotIndex + 1);
if ((inputFileFormat.ToLower() == "raw"))
FileType = DeconToolsV2.Readers.FileType.FINNIGAN;
FileType = DeconToolsV2.Readers.FileType.THERMORAW;
else if (inputFileFormat.ToLower() == "mzxml")
FileType = DeconToolsV2.Readers.FileType.MZXMLRAWDATA;
else
Expand All @@ -680,7 +680,7 @@ public void CreateDTAFile()

var thresholded = true;
/*
if (FileType == DeconToolsV2.Readers.FileType.FINNIGAN ||
if (FileType == DeconToolsV2.Readers.FileType.THERMORAW ||
FileType == DeconToolsV2.Readers.FileType.MZXMLRAWDATA)
thresholded = true;
else
Expand Down

0 comments on commit ce57282

Please sign in to comment.