Skip to content

Commit

Permalink
Bump YamlDotNet from 13.3.1 to 13.4.0 (#180)
Browse files Browse the repository at this point in the history
  • Loading branch information
dependabot[bot] authored Sep 26, 2023
1 parent acd6d94 commit ea52db5
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 11 deletions.
7 changes: 2 additions & 5 deletions BadDicom/BadDicom.csproj
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>

<TargetFramework>net7.0</TargetFramework>
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
<StartupObject></StartupObject>
<ApplicationIcon />
<OutputType>Exe</OutputType>
<SatelliteResourceLanguages>en</SatelliteResourceLanguages>
Expand All @@ -16,7 +14,6 @@
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
<PublishSingleFile>true</PublishSingleFile>
<Nullable>enable</Nullable>
<EmitCompilerGeneratedFiles>true</EmitCompilerGeneratedFiles>
</PropertyGroup>

<ItemGroup>
Expand All @@ -36,8 +33,8 @@
<ItemGroup>
<PackageReference Include="CommandLineParser" Version="2.9.1" />
<PackageReference Include="HIC.DicomTypeTranslation" Version="4.0.3" />
<PackageReference Include="Vecc.YamlDotNet.Analyzers.StaticGenerator" Version="13.0.2" />
<PackageReference Include="YamlDotNet" Version="13.3.1" />
<PackageReference Include="Vecc.YamlDotNet.Analyzers.StaticGenerator" Version="13.4.0" />
<PackageReference Include="YamlDotNet" Version="13.4.0" />
</ItemGroup>
<ItemGroup>
<Folder Include="Properties\" />
Expand Down
12 changes: 6 additions & 6 deletions BadMedicine.Dicom/FileSystemLayoutProvider.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@ public FileInfo GetPath(DirectoryInfo root,DicomDataset ds)

switch(Layout)
{
case FileSystemLayout.Flat:
case FileSystemLayout.Flat:
return new FileInfo(Path.Combine(root.FullName,filename));

case FileSystemLayout.StudyYearMonthDay:

if(date.Length > 0)
{
return new FileInfo(Path.Combine(
Expand All @@ -37,9 +37,9 @@ public FileInfo GetPath(DirectoryInfo root,DicomDataset ds)
break;

case FileSystemLayout.StudyYearMonthDayAccession:

var acc = ds.GetSingleValue<string>(DicomTag.AccessionNumber);

if(date.Length > 0 && !string.IsNullOrWhiteSpace(acc))
{
return new FileInfo(Path.Combine(
Expand All @@ -59,9 +59,9 @@ public FileInfo GetPath(DirectoryInfo root,DicomDataset ds)
ds.GetSingleValue<DicomUID>(DicomTag.StudyInstanceUID).UID,
filename));

default: throw new ArgumentOutOfRangeException();
default: throw new ArgumentOutOfRangeException(nameof(Layout));
}

return new FileInfo(Path.Combine(root.FullName,filename));
}

Expand Down

0 comments on commit ea52db5

Please sign in to comment.