Opened 16 years ago

Closed 14 years ago

#226 closed defect (wontfix)

Problem with sww2timeseries output file location is not consistent

Reported by: nick Owned by: ole
Priority: normal Milestone:
Component: Functionality and features Version:
Severity: normal Keywords:


Matt Pittard installed anuga on C drive on a windows xp PC. He noticed that when running the in the cairns scenario in the anuga_demo. The graphs were outputted to the right directory but the csv files were outputed to the root directory.

Both the csv files and the graphs are produced in "generate_figures" in The file id "file_out" used for the csv file is never closed... maybe this is a problem... Look at line 1058

thisfile = file_loc[j]+sep+'gauges_time_series'+'_'+gaugeloc+'.csv'
fid_out = open(thisfile, 'w')

and around line 1087

s = '%.2f, %.2f, %.2f, %.2f, %.2f, %.2f, %.2f\n' %(t, w, m, vel, z, uh, vh)

Also to note is that this function is over lapped with the "make_plots_from_csv_file" function in It could be useful to use parts of generate_figures to make a function say "sww_gauges2csv" or edit sww2timeseries to output the timeseries data into files...

Change History (3)

comment:1 Changed 16 years ago by nick

  • Component changed from Appearance and visualisation to Functionality and features

comment:2 Changed 16 years ago by ole

  • Status changed from new to assigned

comment:3 Changed 14 years ago by nariman

  • Resolution set to wontfix
  • Status changed from assigned to closed
Note: See TracTickets for help on using tickets.