izzy lyseggen
393e98c8c2
fix(encoding): add none unit type
2021-10-14 16:07:34 +01:00
izzy lyseggen
8376329cbb
fix(base): type check error with optional generics
...
reported by rob on the forum:
https://speckle.community/t/issue-with-type-checking-in-pyhton/1861
2021-10-14 15:41:30 +01:00
izzy lyseggen
1567fe9e68
fix(breps): temp hotfix for curve encoding fail
...
addresses 🥒 Bug with brep receiving (curve encoding) #127
2021-10-14 15:38:51 +01:00
izzy lyseggen
19b83ba191
fix(objects): quick geo and style edits
2021-10-04 09:37:42 +01:00
AntoineDao
69a5248abb
fix(brep): fix Curve2DValues.setter
2021-09-19 10:08:57 +00:00
AntoineDao
e20b9b73c9
fix(brep): update vertices and trim values serialization
...
It turns out that those are not serialized like the other list attributes... Which is not super helpful or consistent but oh well :D
2021-09-18 22:54:58 +00:00
AntoineDao
c06b20a963
style(comments): remove commented out code...
2021-09-18 21:56:59 +00:00
AntoineDao
5bc6b8c4ed
style(brep): use getter/setter on XValues attributes
2021-09-18 21:54:58 +00:00
AntoineDao
3005e421a6
refactor(base): use get_serializable_attributes
2021-09-18 11:47:47 +00:00
AntoineDao
8fb03972d5
fix(serialization): fix some bugs I introduced by not testing before committing...
2021-09-18 11:29:00 +00:00
AntoineDao
02702190c9
fix(object): move array encoding from datachunk to its own class
2021-09-15 23:30:59 +01:00
AntoineDao
2bd31ae954
style(lint): clean up code and update/re-order imports
2021-09-15 23:00:41 +01:00
AntoineDao
d0f8f95e4e
feat(brep): use list serializers
2021-09-12 17:43:12 +00:00
AntoineDao
fc3ae3b98e
feat(base): add 'ignore_serialize' attribute
...
This enables users to specify attributes which should not be included in object serialization but should still be public members
2021-09-12 17:42:00 +00:00
AntoineDao
a6b19025e6
feat(base): add data chunk encoding/decoding methods
...
These are helpful to iterate over chunked lists of encoded geometry objects and decode them into base objects (and vice versa)
2021-09-12 17:38:56 +00:00
AntoineDao
2be82f0874
feat(geometry): add list encoding serialization
...
Most geometry objects can be encoded and decoded from list of floats that look like protobuffs in C#. This commit simply reproduces those methods
2021-09-12 17:36:40 +00:00
izzy lyseggen
973dc07d5b
fix(base): little tweaks
2021-08-24 15:50:08 +01:00
izzy lyseggen
7dd5b7a2a1
test(base): type checks
2021-08-24 12:11:46 +01:00
izzy lyseggen
f259f256c7
feat(base): smol get_member fixes and others
2021-08-24 11:50:23 +01:00
izzy lyseggen
f89b07eacb
feat( 🥣 ): custom base types and test fixes
2021-08-20 13:09:09 +01:00
izzy lyseggen
c973d916b3
fix(base): py 3.6 typing fix
2021-08-20 12:10:52 +01:00
izzy lyseggen
4ff6288317
feat( 🥣 ): faster get_member_names
2021-08-20 11:56:04 +01:00
izzy lyseggen
4fc07f33d0
fix(base): try fix for 3.7 and 3.6
2021-08-19 17:52:22 +01:00
izzy lyseggen
4e23a69b89
fix(base): chunk fixes
2021-08-19 17:44:50 +01:00
izzy lyseggen
1b4d43e0aa
fix(base): add init w kwargs
2021-08-19 16:01:00 +01:00
izzy lyseggen
f78c8c407f
docs(base): docstring for of_type
2021-08-19 15:50:45 +01:00
izzy lyseggen
892c11f38f
fix(base): remove unused init
2021-08-19 14:13:43 +01:00
izzy lyseggen
72639bf4bb
fix(base): bypass for setting speckle_type on base
2021-08-19 13:58:25 +01:00
izzy lyseggen
cb07f55551
feat(base): remove pydantic and diy the type check
...
- also improves performance by moving adding chunkables/detachables to
the init_subclass hook
- all inits in the geo classes have been removed
- type checking is enforced on setting attributes from the `Base` class
- unrecognised types are ignored (no type checking)
- generics are checked for the generic only, not for the args
- ints and strs are attempted to be parsed as floats,
but not the other way around
2021-08-19 12:25:03 +01:00
izzy lyseggen
79cca557f5
fix(objects): init polyline value w empty list
...
soz!
2021-08-12 11:49:41 +01:00
izzy lyseggen
a44036863d
fix(base): get units prop on children
2021-07-28 18:01:51 +01:00
izzy lyseggen
5806c032dd
feat(units): add km
2021-07-28 18:01:25 +01:00
izzy lyseggen
2c10134703
feat(objects): add RenderMaterial
2021-04-15 17:04:39 +01:00
izzy lyseggen
434ada8bc1
feat: rename speckle to specklepy
2021-04-09 12:25:32 +01:00