{"action":"created","issue":{"url":"https://api.github.com/repos/ORNL-Fusion/ips-atom/issues/23","labels_url":"https://api.github.com/repos/ORNL-Fusion/ips-atom/issues/23/labels{/name}","comments_url":"https://api.github.com/repos/ORNL-Fusion/ips-atom/issues/23/comments","events_url":"https://api.github.com/repos/ORNL-Fusion/ips-atom/issues/23/events","html_url":"https://github.com/ORNL-Fusion/ips-atom/issues/23","id":90981299,"number":23,"title":"Restart IPS simulation from LATEST","user":{"login":"dlg0","id":108073,"avatar_url":"https://avatars.githubusercontent.com/u/108073?v=3","gravatar_id":"","url":"https://api.github.com/users/dlg0","html_url":"https://github.com/dlg0","followers_url":"https://api.github.com/users/dlg0/followers","following_url":"https://api.github.com/users/dlg0/following{/other_user}","gists_url":"https://api.github.com/users/dlg0/gists{/gist_id}","starred_url":"https://api.github.com/users/dlg0/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dlg0/subscriptions","organizations_url":"https://api.github.com/users/dlg0/orgs","repos_url":"https://api.github.com/users/dlg0/repos","events_url":"https://api.github.com/users/dlg0/events{/privacy}","received_events_url":"https://api.github.com/users/dlg0/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ORNL-Fusion/ips-atom/labels/Feature%20Request","name":"Feature Request","color":"0052cc"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-06-25T14:30:58Z","updated_at":"2015-06-25T17:20:21Z","closed_at":null,"body":"@elwasif @diemsj @bernhold @batchelordb \r\n\r\nI'd like to be able to restart an IPS simulation from the latest entry in the $RESTART_ROOT, i.e., something like ...\r\n\r\n```\r\nSIMULATION_MODE = RESTART\r\nRESTART_TIME = LATEST\r\nRESTART_ROOT = ${SIM_ROOT}\r\n\r\n[TIME_LOOP]\r\nMODE = REGULAR\r\nSTART = ${RESTART_TIME}\r\nFINISH = ${RESTART_TIME} + 1\r\nNSTEP = 1\r\n```\r\n\r\nThis can be done with shell scripts already, but is rather messy. I'd rather it be a feature of the IPS. This is likely to require basic arithmetic parsing in the config file, or the possibility of backtick-enclosed type execution to return variables. \r\n\r\nIs this something plausible to do?"},"comment":{"url":"https://api.github.com/repos/ORNL-Fusion/ips-atom/issues/comments/115329416","html_url":"https://github.com/ORNL-Fusion/ips-atom/issues/23#issuecomment-115329416","issue_url":"https://api.github.com/repos/ORNL-Fusion/ips-atom/issues/23","id":115329416,"user":{"login":"dlg0","id":108073,"avatar_url":"https://avatars.githubusercontent.com/u/108073?v=3","gravatar_id":"","url":"https://api.github.com/users/dlg0","html_url":"https://github.com/dlg0","followers_url":"https://api.github.com/users/dlg0/followers","following_url":"https://api.github.com/users/dlg0/following{/other_user}","gists_url":"https://api.github.com/users/dlg0/gists{/gist_id}","starred_url":"https://api.github.com/users/dlg0/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dlg0/subscriptions","organizations_url":"https://api.github.com/users/dlg0/orgs","repos_url":"https://api.github.com/users/dlg0/repos","events_url":"https://api.github.com/users/dlg0/events{/privacy}","received_events_url":"https://api.github.com/users/dlg0/received_events","type":"User","site_admin":false},"created_at":"2015-06-25T17:20:21Z","updated_at":"2015-06-25T17:20:21Z","body":"So this is the syntax I tried ...\r\n\r\n```\r\n 43 SIMULATION_MODE = RESTART # NORMAL or RESTART\r\n 44 RESTART_TIME = LATEST # LATEST or float (e.g., 2.5)\r\n 45 RESTART_ROOT = $SIM_ROOT\r\n```\r\n\r\n```\r\n467 [TIME_LOOP]\r\n468     MODE = REGULAR # REGULAR or EXPLICIT\r\n469     START = $RESTART_TIME\r\n470     FINISH = $RESTART_TIME + 1\r\n471     NSTEP = 1\r\n```\r\nbut it failed with ...\r\n\r\n```\r\n2015-06-25 10:17:06,418 FRAMEWORK       ERROR    received a failure message from component thisSim@minimal_state_init@1 : (Exception('Invalid TIME_LOOP value of FINISH = LATEST + 1',),)\r\n```\r\n\r\nThoughts?"}}