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 json | |
| import numpy | |
| import numpy.typing | |
| import pathlib | |
| import typing | |
| import zipfile | |
| def read_ndata1(path: pathlib.Path) -> typing.Tuple[typing.Optional[typing.Dict[str, typing.Any]], typing.Optional[numpy.typing.NDArray[typing.Any]]]: | |
| zip_file = zipfile.ZipFile(path, 'r') | |
| namelist = zip_file.namelist() |
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
| # conda create -n py310 numpy scipy -y | |
| # conda create -n py310-forge -c conda-forge numpy scipy -y | |
| # conda install -c conda-forge pyfftw | |
| # as of 2022-05-31 conda-forge has no signficant performance difference from conda on Windows, python 3.10 | |
| # and scipy.fft is much faster than numpy.fft. pyfftw is slower. | |
| import time | |
| import numpy | |
| import scipy |
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 python | |
| import logging | |
| logger = logging.getLogger() | |
| logger.setLevel(logging.DEBUG) | |
| from nion.swift import Test as Test | |
| packages = [] |
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
| #!/bin/zsh | |
| autoload colors; colors | |
| echo $fg_bold[blue]`date`$fg[black] | |
| for python in py310-test py39-forge py38-forge | |
| do | |
| mypy=/Users/cmeyer/miniconda3/envs/$python/bin/mypy |