TypeError: float argument required

Problem writing reports that was revealed by analysing the results from 2m_all test. Traceback (most recent call last): File "/home/s0575124/star/version_5.02/wall_wave/base_refinement/test.py", line 19, in ? test.cycle() File "/home/s0575124/programming/python/fifthwave/trunk/src/flightdeck.py", line 324, in cycle if self._cur_job.status != 9: self.analyse(sim_dat_point) File "/home/s0575124/programming/python/fifthwave/trunk/src/flightdeck.py", line 291, in analyse t_inter=self.t_delta) File "/home/s0575124/programming/python/fifthwave/trunk/src/fifthwave.py", line 1000, in report new_report.write() File "/home/s0575124/programming/python/fifthwave/trunk/src/fifthwave.py", line 908, in write
report_file.write('%20.8f | ' % record.met_pairs[metdex][1])


Id: 1660525c5e15b1a360cb0a44ccfa251c7e7b9624
Type: bugfix
Creation time: 2010-11-18 09:20
Creator: Mathew Topper <mathew.topper@...>
Release: 0.2 (released 2011-02-09)
Component: fifthwave.py
Status: closed : fixed fixed
In progress: 25 hours

Issue log

2010-11-23 10:38 Mathew Topper <mathew.topper@...> closed with disposition fixed
There didn't seem to be a problem with the organisation of the feilds in the reports so the problem came from report types that contained spaces. That's fixed now and I've sanitised the file name by turning the report type (row_type) lower case and replacing spaces with underscores. That's in Report.__init__
2010-11-22 11:12 Mathew Topper <mathew.topper@...> commented
Fixed an issue where the report type (free variable) was not being deleted properly from the metric lists if it was more than one word long. Similarly, the file names contain spaces and I don't want that, so I might try to sanitise that too. I still want to check what happens if the metrics are in different orders in an existing report and the current simulation.
2010-11-22 10:21 Mathew Topper <mathew.topper@...> commented
Does Record.read() deal with blank entries properly. It seems to assume that a blank entry will be read as an empty string, but I think it's more likely that you'll just get two '|'s. Need to test this out.
2010-11-22 09:29 Mathew Topper <mathew.topper@...> changed status from unstarted to in_progress
2010-11-18 09:20 Mathew Topper <mathew.topper@...> created