Code Monkey home page Code Monkey logo

Comments (3)

darcymason avatar darcymason commented on May 24, 2024

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.

darcymason avatar darcymason commented on May 24, 2024

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.

darcymason avatar darcymason commented on May 24, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.