Giter Club home page Giter Club logo

Comments (4)

giordano avatar giordano commented on May 19, 2024

There is already a PR for Unitful.jl to fix the issue when using the two packages together: PainterQubits/Unitful.jl#213

from measurements.jl.

karlwessel avatar karlwessel commented on May 19, 2024

I did not know of that PR, that will be definitively a huge improvement!

However there are still cases where the display is not truncated, like in this MWE:

julia> using Measurements

julia> a = 10π ± π
31.4 ± 3.1

julia> a, a
(31.41592653589793 ± 3.141592653589793, 31.41592653589793 ± 3.141592653589793)

An option to always use truncation would solve this for all cases where one has no control over whether the IO has :limit mode set.

Or, if a global option is not possible, is there some way one can easily force Measurements to be displayed truncated?

from measurements.jl.

giordano avatar giordano commented on May 19, 2024

I don't really like global options. I'm thinking about simply always using truncated display.

from measurements.jl.

karlwessel avatar karlwessel commented on May 19, 2024

That would also be totally fine (and reasonable) for me. However, in that case an easy method to display the untruncated version would probably be good.

from measurements.jl.

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.