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 argparse | |
| from sipyco import pc_rpc, common_args | |
| from driver import Camera | |
| def get_argparser(): |
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 spcm | |
| import math | |
| from spcm import units | |
| import numpy as np | |
| size = 100 | |
| f0 = np.linspace(85.0e6, 121.0e6, size) | |
| f1 = np.linspace(84.5e6, 120.5e6, size) |
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 spcm | |
| import numpy as np | |
| # Define frequency ranges for each channel | |
| ch0_freqs = np.linspace(85.0e6, 121.0e6, 3) | |
| ch1_freqs = np.linspace(84.5e6, 120.5e6, 3) | |
| # Assign cores to each channel | |
| ch0_cores = np.concatenate((np.arange(0, 8), np.arange(12, 20))) | |
| ch1_cores = np.concatenate((np.arange(8, 12), [20])) |
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 os | |
| import spcm | |
| import logging | |
| import time | |
| import argparse | |
| import numpy as np | |
| from itertools import chain | |
| from functools import reduce | |
| loglevel = os.getenv("LOGLEVEL", "WARNING").upper() |
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 spcm | |
| from spcm import units | |
| import numpy as np | |
| config = { | |
| # 18925: { | |
| # "path": "/dev/spcm0", | |
| # "freq": np.linspace(84.5, 120.5, 3), | |
| # "freq": [(120.5+84.5)/2] | |
| # }, |
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
| FROM nixos/nix:2.21.2 | |
| RUN mkdir -p /root/.config/nix | |
| COPY nix.conf /root/.config/nix | |
| WORKDIR /app | |
| COPY flake.nix . | |
| RUN nix develop . |
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
| package main | |
| import ( | |
| "log" | |
| "net" | |
| "net/http" | |
| "os" | |
| "github.com/prometheus/client_golang/prometheus" | |
| "github.com/prometheus/client_golang/prometheus/promhttp" |
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
| package main | |
| import ( | |
| "bufio" | |
| "fmt" | |
| "log" | |
| "net" | |
| "net/http" | |
| ) |
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
| from telnetlib import Telnet | |
| class PTC10: | |
| def __init__(self, host: str, port=None): | |
| self.host = host | |
| self.port = port | |
| def oven_power(self): | |
| with Telnet(self.host, self.port) as conn: |
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
| ### A Pluto.jl notebook ### | |
| # v0.19.24 | |
| using Markdown | |
| using InteractiveUtils | |
| # ΓòöΓòÉΓòí ec26df3c-14b8-11ee-282f-c51a3afd5185 | |
| begin | |
| using Unitful | |
| using Statistics |
NewerOlder