Issue 450: Python script skips "d" lines
http://code.google.com/p/fds-smv/issues/detail?id=450

Comment #4 by bryanwklein:
Found the problem and fixed it in the latest set of files in the repo.

Each d line requires a unique set of strings in the columns used to build  
the data
dictionary keys.

Unique reference keys for each dataset are built with the following python  
code.
data_key_name =
keyed_data['Quantity'].strip()+"~"+keyed_data['Group'].strip()+"~"+keyed_data['Dataname'].strip()+"~"+keyed_data['Exp_Y_Col_Name'].strip()


In the previous version of the config file which did not work, all of the d  
lines had
the same strings for Quantity ( 0 ), Group ( 1 ), Dataname (  
Steckler_Compartment )
and the Exp_Y_Col_Name ( Height ).

So the script would read down the d lines and overwrite the dictionary key
"0~1~Steckler_Compartment~Height" with the values from each d line.   
Resulting in
only the last d line in the config file being stored in the data dictionary  
and
subsequently plotted.

I changed the Dataname values for each line by adding the test number to  
the end of
the data name.  After this, all lines resulted in a PDF plot file being  
generated.

Note: the same Dataname can be used in other d lines, as long as one of the  
other key
values is different.  Typically it will be the Exp_Y_Col_Name value.


Issue attribute updates:
        Status: Fixed

-- 
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings

--~--~---------~--~----~------------~-------~--~----~
You are subscribed to the "fds-smv-issues" group.
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at:
http://groups.google.com/group/fds-smv-issues?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to