Basically I have a form with a that chooses which set of data to use (values are \"m\", \"f\" and \"c\"). I then have a dictionary/object with th
You don't have "mode" attribute in that variable. You must use if's to detect which sex you are processing and get gdas.m.fibre or gdas.f.salt.
gdas.m.fibre
gdas.f.salt