052bf79487
adds setattr validation to observable if validate_set decorator is used
2024-05-28 11:22:18 +02:00
203cc0f0f5
adds validate_set decorator
2024-05-28 11:22:18 +02:00
0c54c9d4b7
Merge pull request #130 from tiqi-group/chore/update_workflow_action_versions
...
Chore/update workflow action versions
2024-05-27 15:35:48 +02:00
381e73d624
using latest versions of github actions
2024-05-27 15:33:15 +02:00
9f27f07ccb
adds python 3.12 to python package checks
2024-05-27 15:33:01 +02:00
94cef50e03
combines two lines in _ObservableList.append
2024-05-27 15:22:30 +02:00
9fa8f06280
Merge pull request #127 from tiqi-group/feature/ignore_coroutine
...
Skip coroutines with arguments instead of raising an exception
v0.8.3
2024-05-27 15:10:46 +02:00
84abd63d56
Merge branch 'main' into feature/ignore_coroutine
2024-05-27 15:08:14 +02:00
999a6016ff
using __future__.annotations instead of quoted types
2024-05-27 14:51:49 +02:00
19f91b7cf3
removes TaskDefinitionError
2024-05-27 14:42:54 +02:00
a0b7b92898
fixes test
2024-05-27 14:42:30 +02:00
d7e604992d
updates wording and formatting
2024-05-27 14:42:26 +02:00
2d1d228c78
Merge pull request #128 from tiqi-group/refactor/remove_unused_attribute_key_from_observers_dict
...
Refactor: remove unused attribute key from observers dict
2024-05-21 14:08:48 +02:00
9c3c92361b
updates tests
2024-05-21 14:03:25 +02:00
ba9dbc03f1
removes attribute key from observers dict if list of observers is empty
2024-05-21 14:03:21 +02:00
f783d0b25c
Merge pull request #126 from tiqi-group/fix/memory_leak
...
Fix memory leak in ObservableObject
2024-05-21 13:51:03 +02:00
8285a37a4c
updates version to v0.8.3
2024-05-21 13:43:13 +02:00
6a894b6154
adds test for dict/list garbage collection
2024-05-21 13:42:25 +02:00
f9a5352efe
moves lines adding weakref to mapping dict into _initialise_new_objects
...
This groups together all the lines that add elements to or get elements from the mapping dicts.
2024-05-21 13:42:25 +02:00
9c5d133d65
fixes types
2024-05-21 10:51:13 +02:00
eacd5bc6b1
Skip coroutines with arguments instead of raising an exception
2024-05-20 17:41:57 +02:00
314e89ba38
Use weak references in dict/list mappping to avoid memory leak
2024-05-20 17:25:35 +02:00
46868743c7
Merge pull request #123 from tiqi-group/36-feat-add-support-for-dictionaries
...
feat: adds support for dictionaries
v0.8.2
2024-04-30 15:48:16 +02:00
8203e3a498
updates version to v0.8.2
2024-04-30 15:47:50 +02:00
82b9c14af3
ignores mypy overrides error
2024-04-30 15:46:50 +02:00
b209ad75bb
fixes serializer types and test
...
pydase dicts can only have stringed keys. This is now reflected in the serializer, as well.
2024-04-30 15:46:39 +02:00
88a630518b
updates ProxyDict types, ignores mypy error
2024-04-30 15:42:48 +02:00
ed80c92b1f
adds dict test for pydase.Client
...
The pop
2024-04-30 15:33:56 +02:00
36e30970c5
adds dict.pop to pydase.Client
...
The pop method removes the element in the dictionary on the server, but it will not
return anything. This is because pop will delete the element on the server, and returned
proxy classes will not be meaningful.
2024-04-30 15:24:15 +02:00
3384d1bebf
adds dict.pop method to ObservableDict
2024-04-30 13:15:42 +02:00
e2f94c8a28
updates Readme (mentions dict support under standard data types)
2024-04-30 13:02:58 +02:00
4d442cfadc
adds ProxyDict to pydase client
2024-04-30 11:50:15 +02:00
2701a995e1
updates test_helpers (replacing float key with dotted string key)
2024-04-30 11:48:05 +02:00
47a73ad55f
moves _ObservableDict tests into separate file
2024-04-30 11:47:22 +02:00
ad4f926472
replaces ObservableDict key type warning with exception
2024-04-30 11:44:07 +02:00
208dee2b92
dictionaries can only take strings now
...
The object serializations are passed through json.dumps before they are emitted to the
clients. JSON, apparently, can only handle keys of type string, which is why I have to
limit the dictionary key types to strings, as well.
2024-04-30 11:12:45 +02:00
02b2d4fb10
observer: ignoring __annotations__ class attribute
2024-04-30 11:09:54 +02:00
b2f59dd447
updates serializer type (dictionary object)
2024-04-30 10:51:52 +02:00
33aa8708fd
frontend: fixes displayName for dotted dictionary keys
2024-04-30 10:02:46 +02:00
37d698a1b2
fixes web settings (displayName for dotted dictionary keys)
2024-04-30 10:02:13 +02:00
8fa91e8121
adds tests for generate_serialized_data_paths and get_data_paths_from_serialized_object
2024-04-30 10:02:13 +02:00
b9131c9df2
updates generate_serialized_data_paths to handle dictionaries well
2024-04-30 10:02:13 +02:00
1c1584c2cf
fixes dictionary serialization for keys that are not strings
2024-04-30 10:02:13 +02:00
bb3d6fcce1
updates _ObservableDict
...
- allows for strings and numbers now
- key will have double quotes (") instead of single quote (') when key is a string
- fixed some few things
- added/updated tests
2024-04-30 10:02:13 +02:00
e9a7e785dd
npm run build
2024-04-30 10:02:13 +02:00
a214d6d85a
using id as form name for number and string component
...
This removes errors saying that quotes within element name are not allowed.
2024-04-30 10:02:13 +02:00
6eaf1a03d1
adds onChange prop to number component form field to remove console errors
2024-04-29 15:20:11 +02:00
31f1c9a8ce
adds "None" type to AttributeType type
2024-04-29 15:08:12 +02:00
02f1dba0f3
frontend: updates stateUtils
2024-04-29 15:05:48 +02:00
dc40fc299f
adds test for failing get_object_by_path_parts
2024-04-26 09:49:27 +02:00