This wrapper checks for an Azure OpenAI API key before launching codex. If the key is missing or insecure, it falls back to the openai profile.
Create ~/.codex/config.toml with the following content:
# ~/.codex/config.toml| Generated by pyPoseidon/Seareport. Source: https://gitlab.awi.de/fesom/pi | |
| 5839 3140 | |
| 1 -60.601185 74.282921 672.000000 | |
| 2 -60.730137 73.911835 534.000000 | |
| 3 -62.152714 74.051453 621.000000 | |
| 4 -60.711136 74.629112 744.000000 | |
| 5 -62.033558 74.489540 594.000000 | |
| 6 -59.973656 74.909492 732.000000 | |
| 7 -63.679485 73.741440 721.000000 | |
| 8 -65.553253 73.517487 2288.000000 |
| from itertools import product | |
| import numpy as np | |
| INV_SQRT_3 = 1.0 / np.sqrt(3.0) | |
| ASIN_INV_SQRT_3 = np.arcsin(INV_SQRT_3) | |
| def gaussian_bell(xs, ys, xc=0., yc=0., xsigma=1., ysigma=1.): | |
| """ Compute a 2D Gaussian with asymmetric standard deviations and |
| count mean std min 0.01% 0.1% 1% 5% 50% 95% max | |
| Sphere_Sinusoidal 763.0 1.914681e+11 2.372329e+12 12710.243678 19863.381206 84241.618957 319912.537468 736928.604246 7.063695e+06 3.933282e+10 5.037316e+13 | |
| World_Sinusoidal 763.0 1.916041e+11 2.374258e+12 12807.187297 19925.034360 83985.657924 321332.775607 734977.773185 7.105145e+06 3.955987e+10 5.047489e+13 | |
| Sphere_Mollweide 763.0 1.910515e+11 2.370221e+12 11428.973514 18679.709621 83936.334582 321039.742256 730216.371168 7.080316e+06 3.922586e+10 5.037068e+13 | |
| World_Mollweide 763.0 1.914797e+11 2.375534e+12 11454.594055 18721.584280 84124.496300 321759.423300 731853.311448 7.096188e+06 3.931379e+10 5.048360e+13 | |
| Sphere_Eckert_VI 763.0 1.914801e+11 2.372390e+12 10075.406577 17429.301224 83614.353046 317443.145553 73206 |
| from functools import reduce | |
| from typing import Any | |
| from typing import Dict | |
| def merge(a, b, path=None): | |
| """ Merge dictionary a into b (in-place)""" | |
| # source: https://stackoverflow.com/a/7205107/592289 | |
| if path is None: path = [] | |
| for key in b: |
| import numpy as np | |
| import pyproj | |
| # Use the "new" numpy API for the random number generation (requires numpy >=1.17) | |
| rng = np.random.default_rng(seed=1) | |
| # Create arrays with random points | |
| no_points = 5 | |
| longitudes = rng.uniform(low=10, high=20, size=no_points) | |
| latitudes = rng.uniform(low=33, high=45, size=no_points) |
| $ sudo hcitool lescan | |
| AA:BB:CC:DD:EE:FF Polar H10 ABCDEFGH | |
| $ gatttool -t random --device=AA:BB:CC:DD:EE:FF --interactive | |
| [AA:BB:CC:DD:EE:FF][LE]> connect | |
| Attempting to connect to AA:BB:CC:DD:EE:FF | |
| Connection successful | |
| [AA:BB:CC:DD:EE:FF][LE]> primary | |
| attr handle: 0x0001, end grp handle: 0x0009 uuid: 00001800-0000-1000-8000-00805f9b34fb | |
| attr handle: 0x000a, end grp handle: 0x000d uuid: 00001801-0000-1000-8000-00805f9b34fb |
| #!/usr/bin/env python3 | |
| import datetime | |
| import numpy as np | |
| import tensorflow as tf | |
| # Processing Units logs | |
| log_device_placement = True |