Skip to content

Commit

Permalink
Fix typos found by codespell (#247)
Browse files Browse the repository at this point in the history
  • Loading branch information
DimitriPapadopoulos authored Dec 23, 2022
1 parent 58fd583 commit a4ded52
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion pkg/dcmtime/common.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{}

Expand Down
6 changes: 3 additions & 3 deletions pkg/dcmtime/date_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
}
6 changes: 3 additions & 3 deletions pkg/dcmtime/datetime_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
}
2 changes: 1 addition & 1 deletion write.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit a4ded52

Please sign in to comment.