refactor: polymarket#201
Conversation
|
@nikbpetrov I think remove both of them from the argument list. I'm not sure when/why we'd pass either of them to
Please rebase this branch on top of |
|
Also @nikbpetrov I don't see why we have this in def fetch(
self,
*,
dfq: DataFrame[QuestionFrame] | None = None,
files_in_storage: list[str] | None = None,
) -> DataFrame[InferFetchFrame]:and this in def fetch(
self,
*,
dfq: DataFrame[QuestionFrame] | None = None,
existing_resolution_files: dict[str, pd.DataFrame] | None = None,
today: date | None = None,
fetch_datetime: str | None = None,
) -> DataFrame[PolymarketFetchFrame]:It seems like you're using |
I am. I am checking every line by hand. Check comments for instance: AI has so far refused to copy over the same comments you've left through the old code and I have been doing that by hand as I am going through. I also noticed that difference and noted it but forgot to come back to it... |
same for metaculus, it's not clear why |
Oh, no worries then! Thanks so much for all of the thought and effort you put into this! |
As per this comment in the manifold PR. |
I would prefer to change it to |
Yes, I agree, that name is better. Please open a separate PR for that |
|
fixed fetch() interface and also: note that i've opted to keep them on top of fetch, even if not very readable, so as to have them fixed on the moment the fetch starts (rather than placing them nearer where the code actually runs) |
Awesome, thanks! Can you also rebase on top of |
|
flagging the |
today/fetch_datetimeand exposed them viafetch()similar to the other sources, but it seems like an overkill, let me know how you prefer to handle this (or just remove one of them if you prefer to avoid the back-and-forth)Tests: expected parity between old/new for fetch job, and perfect parity between prod/old/new for update; timing within 10% threshold