Skip to content

Commit

Permalink
update fiel name
Browse files Browse the repository at this point in the history
  • Loading branch information
JFriel committed Jan 29, 2025
1 parent 73957a4 commit 3f31775
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Rdmp.Dicom/Extraction/DicomTagToCSV.cs
Original file line number Diff line number Diff line change
Expand Up @@ -77,15 +77,15 @@ public DataTable ProcessPipelineData(DataTable toProcess, IDataLoadEventListener
var dicomFilePaths = new AmbiguousFilePath(ArchiveRootIfAny, dicomFiles).GetDataset(FileFetchRetryLimit, FileFetchRetryTimeout, listener);
foreach (var dcm in dicomFilePaths)
{
var filepath = Path.Combine("C:\\temp\\csvtest", dcm.Item1);
var filepath = Path.Combine("C:\\temp\\csvtest", "output.csv");

var sw = new StreamWriter(filepath);
using var w = new CsvWriter(sw, System.Globalization.CultureInfo.InvariantCulture);
//w.WriteRecords(
//dcm.Item2.Dataset.SelectMany(t => Entry.ProcessTag(dcm.Item1, t))
//);
w.WriteRecord(
DicomFile.Open(dcm.Item1).Dataset.SelectMany(t => Entry.ProcessTag(dcm.Item1, t))
DicomFile.Open(dcm.Item1, FileReadOption.ReadAll).Dataset.SelectMany(t => Entry.ProcessTag(dcm.Item1, t))
);
}

Expand Down

0 comments on commit 3f31775

Please sign in to comment.