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) | |
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
RuleException: | |
CalledProcessError in file /home/babujee/milkviruses_92224/workflow/irma.smk, line 239: | |
Command 'set -euo pipefail; cat > results/primary/seq/milkvirus4_S4_combined/aa.fasta' died with <Signals.SIGINT: 2>. | |
File "/home/babujee/milkviruses_92224/workflow/irma.smk", line 239, in __rule_concat_segment_aa | |
File "/usr/lib/python3.10/concurrent/futures/thread.py", line 58, in run | |
RuleException: | |
CalledProcessError in file /home/babujee/milkviruses_92224/workflow/irma.smk, line 250: | |
Command 'set -euo pipefail; cat > results/primary/seq/milkvirus4_S4_combined/nt.fasta' died with <Signals.SIGINT: 2>. | |
File "/home/babujee/milkviruses_92224/workflow/irma.smk", line 250, in __rule_concat_segment_nt | |
File "/usr/lib/python3.10/concurrent/futures/thread.py", line 58, in run |
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
Building wheels for collected packages: connection-pool, datrie | |
Building wheel for connection-pool (setup.py) ... done | |
Created wheel for connection-pool: filename=connection_pool-0.0.3-py3-none-any.whl size=4062 sha256=3e72f96c62dc89f5af94648812515626414f510305e2ee911aadc70999a2f8fc | |
Stored in directory: /home/babujee/.cache/pip/wheels/c6/4e/3d/7d5324ada36b1473e54d32916a8f70b90b62c9f2fedc9fd8c9 | |
Building wheel for datrie (pyproject.toml) ... error | |
error: subprocess-exited-with-error | |
× Building wheel for datrie (pyproject.toml) did not run successfully. | |
│ exit code: 1 | |
╰─> [44 lines of output] |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 collections import defaultdict | |
from itertools import chain | |
def find_maximal_subsets(sets: list[set]) -> set[frozenset]: | |
""" | |
Find the maximal subsets of items that always appear together in a group of sets. |
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 | |
import random | |
import matplotlib.pyplot as plt | |
numbers = tuple(range(100)) | |
def trial(N: int) -> bool: | |
S = random.choices(numbers, k=N) |
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 rename_coordinates(dataset: "xarray.Dataset", dim: str, mapping: dict[str, str]) -> "xarray.Dataset": | |
return dataset.assign_coords(**{dim: [mapping[k] for k in dataset.coords[dim].values]}) | |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
NewerOlder