Skip to content

Commit

Permalink
keep only EP and WO API EPO
Browse files Browse the repository at this point in the history
  • Loading branch information
juliaGrandhay committed Nov 5, 2024
1 parent 63b6e60 commit f736219
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions patstat/p08b_outils_inpi_adress_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -2529,13 +2529,13 @@ def create_df_address():
lambda a: a["applt_seq_nr"] if a["type_party"] == "applicant" else a["invt_seq_nr"], axis=1)

pat_oeb = missing_oeb[["key_appln_nr", "appln_auth", "appln_publn_number"]].drop_duplicates().reset_index(drop=True)
# pat_oeb = pat_oeb.loc[pat_oeb["appln_auth"].isin(["EP", "WO"])]
pat_oeb = pat_oeb.loc[pat_oeb["appln_auth"].isin(["EP", "WO"])]
pat_oeb["pn"] = pat_oeb["appln_auth"] + pat_oeb["appln_publn_number"]
pat_oeb = pat_oeb.drop(columns=["appln_auth", "appln_publn_number"])

missing_fr6 = pd.merge(missing_fr6, pat_oeb, on="key_appln_nr", how="left")

pubon = list(pat_oeb.loc[pat_oeb["appln_auth"].isin(["WO", "EP"]), "pn"].unique())
pubon = list(pat_oeb["pn"].unique())
print(f"Nombre de numéros de publication à chercher : {len(pubon)}.", flush=True)

part_ops = req_ops_oeb(missing_fr6)
Expand Down

0 comments on commit f736219

Please sign in to comment.