GithubHelp home page GithubHelp logo

cguilloud / xcalibu Goto Github PK

View Code? Open in Web Editor NEW
0.0 0.0 1.0 228 KB

xcalibu allows to handle a calibration provided as a table or a polynomial.

License: GNU Lesser General Public License v3.0

Makefile 1.69% Python 98.31%

xcalibu's People

Contributors

cguilloud avatar marcus-oscarsson avatar sebastien-petitdemange avatar

Watchers

 avatar  avatar  avatar

Forkers

bformet

xcalibu's Issues

Handle unsorted or descending X data in tables

Xcalibu does not handle table files with descending data at all (interpolation impossible)

And unsorted data gives weird results (unnatural albeit somewhat predictable)

I don't see a use case for unsorted tables, so I suggest to always sort table lines in ascending order immediately after reading the file.

@cguilloud do you see any reason not to do that ?

New format for calib tables

As discussed I will propose a simpler format for calib tables, to ease life of scientists when writing tables by hand.

Something like this:

# comments still start with #

# headers will be optional with reasonable default value
CALIB_NAME = Motor
CALIB_TYPE = TABLE
CALIB_TIME = 1400081171.300155
CALIB_DESC = "test simple  table"

#Energy Motor
4.93990 -0.146702
5.00000 -0.145901
5.50000 -0.141491
5.75030 -0.138115
5.99960 -0.136984
6.50000 -0.133978
6.99990 -0.13299

Headers will be not mandatory

  • default type will be TABLE
  • name will be left empty or will match file name ?
  • headers will be written when saving file

I don't like too much the idea to support multiple file format (old and new).
But I will implement a conversion utility (to be executed manually).
edit: both file formats supported for loading and saving

@cguilloud do you agree with this?

edit:

  • no changes to POLY calib type
  • CALIB_TIME being epoch is also not very human friendly, could be changed to string date ?

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.