This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ============================= test session starts ============================== | |
| platform darwin -- Python 3.11.11, pytest-9.0.2, pluggy-1.6.0 | |
| rootdir: /Users/pattinson/myrepos/mapdeduce | |
| configfile: pyproject.toml | |
| collected 81 items / 2 errors | |
| ==================================== ERRORS ==================================== | |
| ______________________ ERROR collecting test/test_blup.py ______________________ | |
| ImportError while importing test module '/Users/pattinson/myrepos/mapdeduce/test/test_blup.py'. | |
| Hint: make sure your test modules/packages have valid Python names. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Resolved 68 packages in 2ms | |
| Building limix-legacy @ git+https://github.com/davipatti/limix-legacy@3636e3d420750a8af5fad27e849122d3068ef459 | |
| × Failed to build `limix-legacy @ git+https://github.com/davipatti/limix-legacy@3636e3d420750a8af5fad27e849122d3068ef459` | |
| ├─▶ The build backend returned an error | |
| ╰─▶ Call to `setuptools.build_meta.build_wheel` failed (exit status: 1) | |
| [stdout] | |
| running bdist_wheel | |
| running build | |
| running build_py |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ❯ uv sync | |
| Using CPython 3.11.11 interpreter at: /opt/homebrew/opt/[email protected]/bin/python3.11 | |
| Creating virtual environment at: .venv | |
| Resolved 68 packages in 387ms | |
| Built mapdeduce @ file:///Users/pattinson/myrepos/mapdeduce | |
| Updated https://github.com/davipatti/limix-legacy (3636e3d420750a8af5fad27e849122d3068ef459) | |
| × Failed to build `limix-legacy @ git+https://github.com/davipatti/limix-legacy@3636e3d420750a8af5fad27e849122d3068ef459` | |
| ├─▶ The build backend returned an error | |
| ╰─▶ Call to `setuptools.build_meta.build_wheel` failed (exit status: 1) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import numpy as np | |
| from scipy.optimize import milp, LinearConstraint, Bounds | |
| class PolyominoPacker: | |
| def __init__(self, grid_rows, grid_cols): | |
| self.R = grid_rows | |
| self.C = grid_cols | |
| self.pieces = [] # List of shapes (each shape is list of coords) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| """ | |
| # palindromes | |
| See https://github.com/terrycojones/palindromes | |
| """ | |
| def substrings(s, l): | |
| """ | |
| generate length `l` substrings of `s` |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python3 | |
| from typing import Generator, Union, Iterable | |
| import random | |
| from itertools import repeat, product | |
| class Set(frozenset): | |
| """ | |
| A 'Set' of cards from the game set. This class is to avoid confusion with the |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def titer_hierarchy_model( | |
| df: pd.DataFrame, | |
| l1_name: str = "day", | |
| l2_name: str = "day_size", | |
| transform: Callable = day_size_to_day, | |
| ) -> pm.Model: | |
| """ | |
| Args: | |
| df: DataFrame | |
| l1_name: Column that contains the first level. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python3 | |
| from typing import Annotated, Union | |
| import io | |
| import json | |
| import requests | |
| from fastapi import FastAPI, Query | |
| from fastapi.responses import Response | |
| from PIL import Image, ImageOps |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import marimo | |
| __generated_with = "0.11.30" | |
| app = marimo.App(width="medium") | |
| @app.cell | |
| def _(): | |
| import marimo as mo | |
| return (mo,) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ~/g/grounding-dino-tiny-ONNX[1]►imxconv-pt -i grounding-dino-tiny-ONNX/onnx/model.onnx -o imx500-conversion ghog-env 1.002s 08:22 | |
| 2025-03-14 08:22:54,326 INFO : Running version 1.10.0 [~/.virtualenvs/ghog-env/lib/python3.10/site-packages/uni/common/logger.py:148] | |
| 2025-03-14 08:22:54,326 INFO : Converting grounding-dino-tiny-ONNX/onnx/model.onnx [~/.virtualenvs/ghog-env/lib/python3.10/site-packages/uni/common/logger.py:148] | |
| 2025-03-14 08:22:57,705 ERROR : CODE: [EXEC] 'NoneType' object cannot be interpreted as an integer [~/.virtualenvs/ghog-env/lib/python3.10/site-packages/uni/common/logger.py:160] | |
| Traceback (most recent call last): | |
| File "~/.virtualenvs/ghog-env/lib/python3.10/site-packages/uni/common/main.py", line 143, in execute | |
| g, metadata = self.convert_model(args.input_path, vis_dir) | |
| File "~/.virtualenvs/ghog-env/lib/python3.10/site-packages/uni/common/main.py", line 61, in convert_model | |
| parser = self.get_parser(model_path, vis_dir) | |
NewerOlder