-
Notifications
You must be signed in to change notification settings - Fork 33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
IntervalValue does not accept integer or float #69
Comments
Hi @khoohuibo , thanks for your interest in czml3! I guess you refer to this piece of code: Lines 318 to 335 in d7f0b72
And here are a couple of examples of how to use czml3/tests/test_properties.py Lines 540 to 543 in f0136f4
czml3/src/czml3/examples/simple.py Lines 31 to 33 in d7f0b72
Would you please paste here what code is producing the error you describe, so we can try to reproduce it? For my understanding everything is working as expected, but CZML documentation is sparse and it's also possible that I'm missing something. |
Closing because of inactivity. |
I seem to be unable to insert values other than booleans into an IntervalValue, defined within types.py
I essentially run into this error upon hitting the following function:
And another exception occurs as well
This is interesting because I am inserting a number '1' as the value, and json.dumps works on that number.
Now i noticed that TYPE_MAPPING is a dictionary defined at the top.
Obviously to circumvent the error, all one needs to do is insert the keys for int and/or float
Now my question is, is my integer and float type meant to fail? Does Cesium's interval values not accept intervalvalues of numbers apart from boolean values?
I am trying to create a time-varying width of polylines using the IntervalValues, considering that IntervalValues can accept BooleanValues. I would like to vary the width of the polylines between 1-5 dependent on another parameter in my simulation.
I am using Spyder 4.1.4, Python 3.7,7, My operating system is windows 10.
Here is the class in question
The text was updated successfully, but these errors were encountered: