We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 575fd45 commit 60ca580Copy full SHA for 60ca580
1 file changed
src/microsim/cosem/_tstore.py
@@ -1,17 +1,24 @@
1
import concurrent.futures
2
import logging
3
+import os
4
import shutil
5
from collections.abc import Callable, Sequence
6
from itertools import product
7
from pathlib import Path
8
from typing import TYPE_CHECKING, Any, Literal, cast
9
10
import numpy as np
-import tensorstore as ts
11
import tqdm
12
13
from ._client import COSEM_BUCKET, COSEM_CACHE
14
15
+# https://github.com/google/tensorstore/issues/171
16
+RED_HAT_CA = "/etc/pki/ca-trust/extracted/pem/tls-ca-bundle.pem"
17
+if os.path.exists(RED_HAT_CA) and "TENSORSTORE_CA_BUNDLE" not in os.environ:
18
+ os.environ["TENSORSTORE_CA_BUNDLE"] = RED_HAT_CA
19
+
20
+import tensorstore as ts # noqa: E402
21
22
if TYPE_CHECKING:
23
from .models import CosemImage
24
0 commit comments