This file contains 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 h5py | |
def read_scorpio_out(file_name) -> dict[str, np.ndarray]: | |
""" | |
# Read scorpio output | |
Example function to read scorpio output. | |
The output is a dictionary with keys as the variable names and values as the corresponding values. |
This file contains 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 __future__ import annotations | |
from typing import List, MutableMapping | |
class NewHash: | |
_constant_to_key = 0 | |
_constant_to_value = 0 | |
_map: MutableMapping[int, int] = dict() | |
def __init__(self): |