From a4ded52298b352e0419f31cd0ca8deb0478a98ba Mon Sep 17 00:00:00 2001 From: Dimitri Papadopoulos Orfanos <3234522+DimitriPapadopoulos@users.noreply.github.com> Date: Sat, 24 Dec 2022 00:22:23 +0100 Subject: [PATCH] Fix typos found by codespell (#247) --- README.md | 4 ++-- pkg/dcmtime/common.go | 2 +- pkg/dcmtime/date_test.go | 6 +++--- pkg/dcmtime/datetime_test.go | 6 +++--- write.go | 2 +- 5 files changed, 10 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index cbca0306..2543a2c9 100755 --- a/README.md +++ b/README.md @@ -18,7 +18,7 @@ After a fair bit of work, I've just released v1.0 of this library which is essen Some notable features: - [x] Parse multi-frame DICOM imagery (both encapsulated and native pixel data) - [x] Channel-based streaming of `Frame`s to a client _as they are parsed_ out of the dicom -- [x] Cleaner Go Element and Dataset representations (in the absense of Go generics) +- [x] Cleaner Go Element and Dataset representations (in the absence of Go generics) - [x] Better support for icon image sets in addition to primary image sets - [x] Write and encode Datasets back to DICOM files - [x] Enhanced testing and benchmarking support @@ -80,7 +80,7 @@ That represents the __v0__ history of the repository. ### v1 -For __v1__ I rewrote and redesigned the core library essentially from scratch, and added several new features and bug fixes that only live in __v1__. The architecture and APIs are completely different, as is some of the underlying parser logic (to be more efficient and correct). Most of the core rewrite work happend at the [`s/1.0-rewrite`](https://github.com/suyashkumar/dicom/tree/s/1.0-rewrite) branch. +For __v1__ I rewrote and redesigned the core library essentially from scratch, and added several new features and bug fixes that only live in __v1__. The architecture and APIs are completely different, as is some of the underlying parser logic (to be more efficient and correct). Most of the core rewrite work happened at the [`s/1.0-rewrite`](https://github.com/suyashkumar/dicom/tree/s/1.0-rewrite) branch. ## Acknowledgements diff --git a/pkg/dcmtime/common.go b/pkg/dcmtime/common.go index fc3d0b8d..367b9d7d 100644 --- a/pkg/dcmtime/common.go +++ b/pkg/dcmtime/common.go @@ -47,7 +47,7 @@ type durationInfo struct { } // extractDurationInfo extracts a piece of DA, TM, or DT info from a parsed regex, -// handling all validation checks, emtpy values, etc. +// handling all validation checks, empty values, etc. func extractDurationInfo(subMatches []string, index int, isFractal bool) (durationInfo, error) { info := durationInfo{} diff --git a/pkg/dcmtime/date_test.go b/pkg/dcmtime/date_test.go index 85dcc1da..f38806bd 100644 --- a/pkg/dcmtime/date_test.go +++ b/pkg/dcmtime/date_test.go @@ -209,8 +209,8 @@ func TestDate_SaneDefaults(t *testing.T) { } dcmVal := newValue.DCM() - expexted := "20210316" - if dcmVal != expexted { - t.Errorf("DCM(): expected '%v', but got '%v'", expexted, dcmVal) + expected := "20210316" + if dcmVal != expected { + t.Errorf("DCM(): expected '%v', but got '%v'", expected, dcmVal) } } diff --git a/pkg/dcmtime/datetime_test.go b/pkg/dcmtime/datetime_test.go index 785e4429..cee62961 100644 --- a/pkg/dcmtime/datetime_test.go +++ b/pkg/dcmtime/datetime_test.go @@ -732,8 +732,8 @@ func TestDatetime_SaneDefaults(t *testing.T) { } dcmVal := newValue.DCM() - expexted := "20210316134532.123456+0001" - if dcmVal != expexted { - t.Errorf("DCM(): expected '%v', but got '%v'", expexted, dcmVal) + expected := "20210316134532.123456+0001" + if dcmVal != expected { + t.Errorf("DCM(): expected '%v', but got '%v'", expected, dcmVal) } } diff --git a/write.go b/write.go index 7d1f6409..cf512481 100644 --- a/write.go +++ b/write.go @@ -19,7 +19,7 @@ import ( var ( // ErrorUnimplemented is for not yet finished things. ErrorUnimplemented = errors.New("this functionality is not yet implemented") - // ErrorMismatchValueTypeAndVR is for when there's a discrepency betweeen the ValueType and what the VR specifies. + // ErrorMismatchValueTypeAndVR is for when there's a discrepancy between the ValueType and what the VR specifies. ErrorMismatchValueTypeAndVR = errors.New("ValueType does not match the VR required") // ErrorUnexpectedValueType indicates an unexpected value type was seen. ErrorUnexpectedValueType = errors.New("Unexpected ValueType")