File tree Expand file tree Collapse file tree 3 files changed +14
-4
lines changed Expand file tree Collapse file tree 3 files changed +14
-4
lines changed Original file line number Diff line number Diff line change 77https://ops.aps.anl.gov/manuals/SDDStoolkit/SDDStoolkitsu2.html
88"""
99
10+ from __future__ import annotations
11+
1012import logging
1113import warnings
12- from collections .abc import Iterator
1314from dataclasses import dataclass , fields
14- from typing import Any , ClassVar
15+ from typing import TYPE_CHECKING , Any , ClassVar
16+
17+ if TYPE_CHECKING :
18+ from collections .abc import Iterator
1519
1620LOGGER = logging .getLogger (__name__ )
1721
Original file line number Diff line number Diff line change 66It provides a high-level function to read SDDS files in different formats, and a series of helpers.
77"""
88
9+ from __future__ import annotations
10+
911import gzip
1012import os
1113import pathlib
Original file line number Diff line number Diff line change 66It provides a high-level function to write SDDS files in different formats, and a series of helpers.
77"""
88
9+ from __future__ import annotations
10+
911import pathlib
1012import struct
11- from collections .abc import Iterable
12- from typing import IO , Any
13+ from typing import IO , TYPE_CHECKING , Any
1314
1415import numpy as np
1516
2526 get_dtype_str ,
2627)
2728
29+ if TYPE_CHECKING :
30+ from collections .abc import Iterable
31+
2832
2933def write_sdds (sdds_file : SddsFile , output_path : pathlib .Path | str ) -> None :
3034 """
You can’t perform that action at this time.
0 commit comments