Giter Club home page Giter Club logo

Comments (5)

ksmet1977 avatar ksmet1977 commented on August 16, 2024

from luxpy.

ksmet1977 avatar ksmet1977 commented on August 16, 2024

Hi,
Your inputs are vectors, while they should be (minimum) 2D-arrays:
When using
data = np.array([[185, 206, 163]])
Rw = np.array([[256, 264, 202]])
the code runs fine.
regards,
Kevin

from luxpy.

aforsythe avatar aforsythe commented on August 16, 2024

Thanks for the quick reply. Sorry for the confusion. Not really a Python guy.

Just a follow up ...

When running zcam.py I seem to be unable to match the reference values found in the supplemental document

For Sample 1 I'm doing :

import numpy as np
import luxpy as lx

np.set_printoptions(formatter={'float_kind':"{:.2f}".format})

data = np.array([[185, 206, 163]])
Rw = np.array([[256, 264, 202]])
cond = {'La': 264, 'Yb': 100, 'D':  None, 'surround': 'avg', 'Dtype': None}
outin = "h,Q,J,aM,bM,M,C,Sz,Vz,Kz,Wz"

camout = lx.cam.zcam(data, Rw, cieobs='1931_2', conditions=cond, outin=outin)
print(camout)

I get

[[196.34 321.35 91.46 -10.04 -2.94 10.46 2.98 19.07 33.91 26.52 90.95]]

Where I would expect

[[196.3524 321.3464 92.25 -0.0165 -0.0048 10.53 3.0216 19.1314 34.7022 25.2994 91.6837]]

Some of the values match (within rounding), some are sort of close, and some seem significantly off. I suspect maybe I'm misusing the function. Again, apologies if there's something basic here I'm missing.

from luxpy.

ksmet1977 avatar ksmet1977 commented on August 16, 2024

from luxpy.

ksmet1977 avatar ksmet1977 commented on August 16, 2024

from luxpy.

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.