-
Notifications
You must be signed in to change notification settings - Fork 116
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
NoSessionException when user does not init() (#307)
* Fixed but needs refactor and testing * added back ao to crew example notebook * clear outputs * only get first session if session * doesnt throw exception * version bump * update text to not be safe function * refactored state management * black formatting * cleanup and add test back * Adding more explicit warning message when multiple sessions detected --------- Co-authored-by: Braelyn Boynton <bboynton97@gmail.com>
- Loading branch information
1 parent
7228e2e
commit a2f2f7f
Showing
9 changed files
with
265 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
state_dict = {} | ||
|
||
|
||
def set_state(key: str, value: any): | ||
state_dict[key] = value | ||
|
||
|
||
def get_state(key: str) -> any: | ||
return state_dict.get(key) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.