{"action":"created","issue":{"url":"https://api.github.com/repos/Smart-DS/R2PD/issues/6","repository_url":"https://api.github.com/repos/Smart-DS/R2PD","labels_url":"https://api.github.com/repos/Smart-DS/R2PD/issues/6/labels{/name}","comments_url":"https://api.github.com/repos/Smart-DS/R2PD/issues/6/comments","events_url":"https://api.github.com/repos/Smart-DS/R2PD/issues/6/events","html_url":"https://github.com/Smart-DS/R2PD/issues/6","id":434986369,"node_id":"MDU6SXNzdWU0MzQ5ODYzNjk=","number":6,"title":"InternalDataStore.cache_size hangs","user":{"login":"elainethale","id":4871688,"node_id":"MDQ6VXNlcjQ4NzE2ODg=","avatar_url":"https://avatars0.githubusercontent.com/u/4871688?v=4","gravatar_id":"","url":"https://api.github.com/users/elainethale","html_url":"https://github.com/elainethale","followers_url":"https://api.github.com/users/elainethale/followers","following_url":"https://api.github.com/users/elainethale/following{/other_user}","gists_url":"https://api.github.com/users/elainethale/gists{/gist_id}","starred_url":"https://api.github.com/users/elainethale/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elainethale/subscriptions","organizations_url":"https://api.github.com/users/elainethale/orgs","repos_url":"https://api.github.com/users/elainethale/repos","events_url":"https://api.github.com/users/elainethale/events{/privacy}","received_events_url":"https://api.github.com/users/elainethale/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2019-04-18T22:39:57Z","updated_at":"2019-04-18T22:59:33Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"Reproduce on Peregrine with .ini file containing:\r\n\r\n```ini\r\n[local_cache]\r\nroot_path = /scratch/mrossol/Smart_DS\r\nsize = 1000\r\nthreads = 12\r\n```\r\n\r\nand command \r\n\r\n```bash\r\npython R2PD/cli.py -ds $CONFIG_FILE -n 28.442 -80.812 -t solar -te 1/1/2000 1/1/2020 -o $OUT_DIR power -c 10.0 actual\r\n```\r\n\r\nIf you use the elaine_debug branch, this will print some debug messages about progress (lack thereof) to the console."},"comment":{"url":"https://api.github.com/repos/Smart-DS/R2PD/issues/comments/484716717","html_url":"https://github.com/Smart-DS/R2PD/issues/6#issuecomment-484716717","issue_url":"https://api.github.com/repos/Smart-DS/R2PD/issues/6","id":484716717,"node_id":"MDEyOklzc3VlQ29tbWVudDQ4NDcxNjcxNw==","user":{"login":"elainethale","id":4871688,"node_id":"MDQ6VXNlcjQ4NzE2ODg=","avatar_url":"https://avatars0.githubusercontent.com/u/4871688?v=4","gravatar_id":"","url":"https://api.github.com/users/elainethale","html_url":"https://github.com/elainethale","followers_url":"https://api.github.com/users/elainethale/followers","following_url":"https://api.github.com/users/elainethale/following{/other_user}","gists_url":"https://api.github.com/users/elainethale/gists{/gist_id}","starred_url":"https://api.github.com/users/elainethale/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elainethale/subscriptions","organizations_url":"https://api.github.com/users/elainethale/orgs","repos_url":"https://api.github.com/users/elainethale/repos","events_url":"https://api.github.com/users/elainethale/events{/privacy}","received_events_url":"https://api.github.com/users/elainethale/received_events","type":"User","site_admin":false},"created_at":"2019-04-18T22:59:33Z","updated_at":"2019-04-18T22:59:33Z","author_association":"CONTRIBUTOR","body":"If I comment out the part of main that checks the cache size (`cli.py` lines 91 to 98), then I hit essentially the same problem in `datastore.py` line 639 (line numbers refer to elaine_debug branch). That is, I see:\r\n\r\n```python\r\n(r2pd) [ehale@n2184 FAASSTeR]$ python ../R2PD/R2PD/cli.py -ds /home/ehale/r2pd_config.ini -n 28.442 -80.812 -t solar -te 1/1/2000 1/1/2020 -o reserves/data_out/ power -c 10.0 actual\r\nDEBUG:__main__:Connecting to DRPower\r\nDEBUG:R2PD.datastore:Connecting to InternalDataStore\r\nDEBUG:__main__:Determining local cache status\r\nDEBUG:__main__:Getting nodes\r\nDEBUG:__main__:Getting temporal parameters\r\n/home/ehale/R2PD/R2PD/nearestnodes.py:52: FutureWarning: Method .as_matrix will be removed in a future version. Use .values instead.\r\n  lat_lon = r_left.as_matrix(['latitude', 'longitude'])\r\n/home/ehale/R2PD/R2PD/nearestnodes.py:60: FutureWarning: Method .as_matrix will be removed in a future version. Use .values instead.\r\n  node_lat_lon = nodes_left.as_matrix(['latitude', 'longitude'])\r\nDEBUG:R2PD.datastore:Making sure there is room in the local cache for 0.08 GB\r\n```\r\n\r\nwhich means the code is just sitting on \r\n\r\n```python\r\nself._local_cache.test_cache_size(download_size)\r\n```"}}
{"actor":{"display_login":"elainethale"}}