-
Notifications
You must be signed in to change notification settings - Fork 411
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Pyfa does not calculate multiple projections of the same fit #174
Comments
So, to access the In the meantime, will look into the calculated cache to see what we can do... |
Was able to get multiple projections from the same fit working by replacing this block of code:
However, it's really hackish. And it only works for the session - since the database table cannot have more than 1 Speaking of which, I can't decide what to do with the database table. There are a few options: Association Object: Will require us to write an association object to let us access the Redesign Table: Leaning more towards this. Instead of the traditional two-column model, have primary key on traditional ID column, and have each projection association get it's own ID. This will allow us easy access to any additional attributes. |
Decided to go with association object. See #83 for development on this and other improvements |
Seems to be due to the way fits are calculated.
When there is multiple projections of the same fit, the first one is not marked as calculated and goes through the process. The other one, however, satisfies the above condition and is just returned...
We can perhaps separate the calculations from the application of stats and projections... That was a fit that is calcuated can be cached and we can apply it multiple times instead of stopping.
Another reason is simply the way projected fits are expressed in the database, in which the sourceID and victimID are coupled into the Primary key, so we can only have 1 unique pair. There is, however, and
amount
attribute that doesn't seem to be used that we may be able to tap into.The text was updated successfully, but these errors were encountered: