You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would like to run a test using this package. How can I mock a dataset?
I know this gives me an empty dataset dataset, _ := dicom.ParseFile("dicom/1.dcm", nil) and what I would like to do is be able to create one that's hard coded.
I'm looking to do something like this:
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I would like to run a test using this package. How can I mock a dataset?
I know this gives me an empty dataset
dataset, _ := dicom.ParseFile("dicom/1.dcm", nil)
and what I would like to do is be able to create one that's hard coded.I'm looking to do something like this:
dataset, _ := dicom.Dataset{tag.PatientName: "John^Doe"}
Would anyone be able to help me with this?
Beta Was this translation helpful? Give feedback.
All reactions