|
111 | 111 | " # ignore the values upto `split_idx`\n", |
112 | 112 | " PL[:split_idx] = np.inf\n", |
113 | 113 | " \n", |
114 | | - " discord_idx = np.where(np.isinf(PL), np.NINF, PL).argmax()\n", |
| 114 | + " discord_idx = np.where(np.isinf(PL), -np.inf, PL).argmax()\n", |
115 | 115 | " discord_dist = PL[discord_idx]\n", |
116 | 116 | " if discord_dist == np.inf:\n", |
117 | 117 | " discord_idx = -1\n", |
|
471 | 471 | " last_chunk_size = chunks_range[-1, 1] - chunks_range[-1, 0]\n", |
472 | 472 | " last_chunk_size_cutoff = next_pow2(last_chunk_size)\n", |
473 | 473 | " \n", |
474 | | - " bsf = np.NINF \n", |
| 474 | + " bsf = -np.inf \n", |
475 | 475 | " lookahead = next_pow2(m)\n", |
476 | 476 | " for i in range(split_idx, l):\n", |
477 | 477 | " if PL[i] >= bsf: \n", |
|
497 | 497 | " last_chunk_size = m\n", |
498 | 498 | " last_chunk_size_cutoff = 2 * last_chunk_size_cutoff\n", |
499 | 499 | " \n", |
500 | | - " discord_idx = np.where(np.isinf(PL), np.NINF, PL).argmax()\n", |
| 500 | + " discord_idx = np.where(np.isinf(PL), -np.inf, PL).argmax()\n", |
501 | 501 | " discord_dist = PL[discord_idx]\n", |
502 | 502 | " if discord_dist == np.inf:\n", |
503 | 503 | " discord_idx = -1\n", |
|
784 | 784 | "name": "python", |
785 | 785 | "nbconvert_exporter": "python", |
786 | 786 | "pygments_lexer": "ipython3", |
787 | | - "version": "3.10.12" |
| 787 | + "version": "3.13.5" |
788 | 788 | } |
789 | 789 | }, |
790 | 790 | "nbformat": 4, |
|
0 commit comments