Commit Graph

30 Commits

Author SHA1 Message Date
iron3oxide
32f3a387ae
Rename var module to vars (#983) 2023-05-09 23:01:25 -07:00
Masen Furer
557097e2ca
ComputedVar dependency tracking: require caller to pass objclass (#963)
Avoid issue where a ComputedVar is added to to a class dynamically, but does
not have a reference to the class its attached to, but requiring callers of the
`deps()` method to provide the objclass for looking up recursive method calls.

This allows for safer and more simplified determination of dependencies, even
in highly dynamic environments.
2023-05-09 14:36:45 -07:00
Nikhil Rao
dc2dff9323
Temp remove computed var dependency checks (#972) 2023-05-08 18:00:03 -07:00
Nikhil Rao
8e3daf9f5b
Clean up on_load events (#965) 2023-05-08 12:13:51 -07:00
Masen Furer
4515561e61
Per-instance backend variables (#959)
* test_state: check that _backend_vars are not shared between instances

Each instance of State should get its own backend vars

* per-instance backend vars

Attempt to fix #958
2023-05-07 16:23:31 -07:00
Masen Furer
c344a5c0d7
Cache ComputedVar (#917) 2023-05-04 00:11:39 -07:00
Nikhil Rao
a9ee9f6d44
Fix event handler calls to handlers (#899) 2023-04-27 19:30:52 -07:00
Elijah Ahianyo
29945504bc
Dynamic vars initialization unit tests(#880) 2023-04-26 14:41:47 -07:00
Nikhil Rao
f504d6b4b1
Disable computed var deps (#872) 2023-04-25 21:24:40 -07:00
Nikhil Rao
f019e0e55a
Speed up computed var dependency tracking (#864) 2023-04-25 13:56:24 -07:00
Masen Furer
3c4fb256a2
Always emit a full dict() when hydrating (#843) 2023-04-24 21:28:30 -07:00
Alan Mond
73cfd2fdba
Modify some methods in state.py to prevent being overwritten (#856) 2023-04-24 10:45:35 -07:00
Masen Furer
b4755b8123
Only update ComputedVar when dependent vars change (#840) 2023-04-23 18:48:44 -06:00
Nikhil Rao
e4bf94464b
Fix event handler override (#828) 2023-04-15 11:33:52 -07:00
Elijah Ahianyo
592be487c9
Call event handlers from other event handlers (#691) 2023-03-16 16:57:28 -07:00
iron3oxide
7067baf176
Refactor utils module (#666) 2023-03-16 14:59:27 -07:00
advo-kat
8d9c75824c
Socket fixes and config options(#485) 2023-02-09 23:59:20 -08:00
叶子
1529a23c1b
Switch linter to ruff (#450) 2023-02-09 11:33:18 -08:00
PeterYusuke
07289c8735
Solve windows env test fails (#437) 2023-02-06 13:41:59 -08:00
lawrence-axb
d1ff7d481f
Allow plotly figures as state vars (#440) 2023-02-04 16:13:18 -08:00
Thomas Brandého
b06f612a7d
Dynamically add vars to a State (#381) 2023-01-29 11:20:06 -08:00
Nikhil Rao
d376d2972b
Support dataframes as state vars (#324) 2023-01-23 18:47:21 -08:00
Thomas Brandého
554e6d919b
Add event token to router_data (#316) 2023-01-22 17:40:19 -08:00
Nikhil Rao
8be411b81b
Implement var slicing (#289) 2023-01-18 17:53:04 -08:00
Thomas Brandého
1124067c12
Add router data to state (#228) 2023-01-08 13:48:09 -08:00
Nikhil Rao
2543e48a30
Access parent state vars from substate (#207) 2023-01-04 15:41:05 -08:00
Nikhil Rao
43bd4784dc
Fix substate event handlers (#171) 2022-12-22 16:10:15 -08:00
Nikhil Rao
974d2b4cbb
Improve event processing performance (#163) 2022-12-21 20:04:13 -08:00
Nikhil Rao
29e37350e5
Add basic unit tests (#7)
* Unit tests for components, state, and utils
2022-11-20 14:34:25 -08:00
Nikhil Rao
e8e8eaa010 Initial commit. 2022-11-18 12:44:06 -08:00