Skip to content

Commit

Permalink
[add,bugfix] adds cmdline -cache_type JPE,JPW,JPWA. fix bugs related …
Browse files Browse the repository at this point in the history
…to these modes

    parser.add_argument('-cache_type', metavar='cache_type', type=str,
                        default=DEFAULT_CACHE_TYPE,
                        help='''specify how the received data should be synced
                        between memory and disk.
                          - JPE/OneJsonPerEnv:             one json per environment
                          - JPW/OneJsonPerWindow:          one json per window
                          - JPWA/OneJsonPerWindowAutoSave: one json per window,
                                                           autosave to disk when plotting''')
  • Loading branch information
shouldsee committed Sep 3, 2022
1 parent ea846c7 commit 1b46c40
Show file tree
Hide file tree
Showing 2 changed files with 132 additions and 102 deletions.
17 changes: 15 additions & 2 deletions py/visdom/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,18 @@ clean:
serve_test:
python3 -mpdb -cc server.py -env_path test_data -eager_data_loading -logging_level 5

test_simple:
python3 test_simple.py
serve_test_jpwa:
python3 -mpdb -cc server.py -env_path test_data -eager_data_loading -logging_level 5 -cache_type JPWA

serve_test_jpe:
python3 -mpdb -cc server.py -env_path test_data -eager_data_loading -logging_level 5 -cache_type JPE

serve_test_jpw:
python3 -mpdb -cc server.py -env_path test_data -eager_data_loading -logging_level 5 -cache_type JPW


test_save.py:
python3 test_save.py
test_cache.py:
python3 test_cache.py
.PHONY: test_cache.py test_save.py
Loading

0 comments on commit 1b46c40

Please sign in to comment.