Comments (3)
From [email protected] on May 24, 2009 19:49:40
Thought on how to do this:
In filereader (and similar changes to filewriter):
- change readers mapping for 'DS' to new read_DS() rather than read_string. read_DS
calls MultiString with Decimal class as type. - will need to carefully check display when printing dataset or showing its repr
value. repval used in many display functions may meed tweaking. May need a derived
class of Decimal to override its repr - once working, can remove old code that kept the original DS string so could write
out exactly as read in.
Note -- python decimal module started in python 2.4. This change will probably
require dropping pydicom support for python 2.3, unless there is some other way
around this (perhaps could create own Decimal class that stores the original string,
essentially mimics the current pydicom code). May move to minimum python 2.5 in
future releases anyway.
Owner: ---
Labels: Difficulty-Medium
from pydicom.
From [email protected] on January 04, 2012 19:54:56
Bumping this up in priority, for next release (before python 3 work). Rediscovered a bug that changed values in a multi-value list with VR=DS do not get written to file, e.g.: a statement like ds.PatientImagePositionPatient[2]=9.9 sets data in the dataset object but does not write to the file unless the whole list is replaced with a new list. Switching to using python Decimal class is the best way to solve that bug.
Status: Started
Labels: -Type-Enhancement -Priority-Low -Milestone-Release1.0 Type-Defect Priority-High Milestone-NextRelease
from pydicom.
From [email protected] on January 12, 2012 20:10:15
Fixed in revision c313d2befb08 . DS (and IS) class added and unit tests.
Status: Verified
from pydicom.
Related Issues (20)
- Write PixelData to DICOM Dataset on disk without loading the PixelData into memory HOT 6
- Update concept dicts HOT 1
- Private tag sequence reads as 'UN' array HOT 4
- Non-relative patterns are unsupported HOT 14
- Switch FileSet's temporary file names over to using UUIDs HOT 5
- Setting the mode on JpegImageFile fails with Pillow 10.1.0 HOT 2
- dataset.filename is a BytesIO for Deflated Explicit VR Little Endian objects, breaking codify and other uses HOT 5
- (7FE0,0010) Pixel Data has an undefined length indicating that it's compressed, but the data isn't encapsulated as required HOT 18
- Dataset encoded incorrectly after change from explicit to implicit VR HOT 5
- Add FileMetaDataset.parent HOT 3
- defer_size is not having any performance impact with many tags HOT 3
- FileSet and DICOMDIR usage documentation HOT 5
- FileSet.__str__ add `SeriesDescription` if present
- Documentation search is broken. HOT 2
- Unexpected result from encapsulate_extended if non-even length frame
- convert_color_space should return copy of array HOT 4
- RGB dicoms "AttributeError: can't set attribute" after upgrading pillow to 10.1.0 HOT 1
- Change Python formatting: black → ruff
- Intermittent test failures HOT 2
- Comparing two codes where one is erroneously set as a SRT will throw KeyError
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pydicom.