You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
get_fsdb_info is trying to read formula values from a fsdb file. When it does not find them it sometimes sets a default. It should be using what is already present in the formula object, which to my understanding was loaded from the formula file (e.g. gap2016.py etc). We should be keeping these defaults if the value is not present in the fsdb file. This was the cause of #227.
In the function I see that there are other "else" conditions and think that these should not be overiding what is already in the formula. If these are not present in the formula file then I think that they should be left as the formula object (should) have a default value anyway.
The text was updated successfully, but these errors were encountered:
for example this sets time points to off if use_time_points is missing or not 1. It may never happen that this is missing in fsdb but that would be making an assumption.
IMHO it would be better to code it something like this:
if fsdb_data.get('use_time_points') == '1'
formula.formula_time = 'on'
I left the binaries / fixed values always present, like formula_position.
We can change but if FSDB format will change so much to be possibly missing or with different values, function would have to be rewritten anyway.
get_fsdb_info is trying to read formula values from a fsdb file. When it does not find them it sometimes sets a default. It should be using what is already present in the formula object, which to my understanding was loaded from the formula file (e.g. gap2016.py etc). We should be keeping these defaults if the value is not present in the fsdb file. This was the cause of #227.
In the function I see that there are other "else" conditions and think that these should not be overiding what is already in the formula. If these are not present in the formula file then I think that they should be left as the formula object (should) have a default value anyway.
The text was updated successfully, but these errors were encountered: