colinsheppard / time

A NetLogo extension that brings date/time utilities and discrete event scheduling to NetLogo
12 stars 13 forks source link

Unable to load csv files for unsaved models #37

Closed dougedmunds closed 9 years ago

dougedmunds commented 9 years ago

The primitives ts-load and ts-load-with-format will not work unless the model has been saved. They report a root of NULL for the csv file. Running the primitive set-current-directory does not help. This limits the use of this extension if running NetLogo through R (RNetLogo package).

to load-ts set-current-directory "D:\Temp" set ts time:ts-load-with-format "zczoodaily.csv" "yyyy/MM/dd HH:mm" end

generates a Popup window:

Extension exception: null\zczoodaily.csv (The system cannot find the path specified) error while observer running TIME:TS-LOAD-WITH-FORMAT called by procedure LOAD-TS called by Command Center