摘要: pip install libtiff import numpy as np from scipy import misc from PIL import Image from libtiff import TIFF a = np.load("./100.npy") im=Image.fromarr 阅读全文
posted @ 2021-06-02 14:28 nuaazs 阅读(1421) 评论(0) 推荐(0)
摘要: Python读取光纤解调仪tdms文件并转换为dataframe import glob from nptdms import TdmsFile import pandas as pd import pandas as pd import numpy as np import seaborn as 阅读全文
posted @ 2021-06-01 10:06 nuaazs 阅读(307) 评论(0) 推荐(0)
摘要: Gitee地址 阅读全文
posted @ 2021-06-01 09:50 nuaazs 阅读(24) 评论(0) 推荐(0)
摘要: 1. 文件说明 │ acquisition.mac │ CTScanner.mac │ GateMaterials.db │ GateMaterialsGPU.db │ getphantom.py │ macs.py │ output.mac │ phantom.mac │ phantom_box. 阅读全文
posted @ 2021-06-01 09:48 nuaazs 阅读(87) 评论(0) 推荐(0)
摘要: tqdm在阿拉伯语中的意思是“进展”,是一个快速、扩展性强的进度条工具库,用户只需要封装任意的迭代器 tqdm(iterator)。 一张动图展示tqdm 的简单而强大: 用法 最主要的用法有3种,自动控制、手动控制或者用于脚本或命令行。 详细资料见GitHub: https://github.co 阅读全文
posted @ 2021-06-01 08:37 nuaazs 阅读(529) 评论(0) 推荐(0)
摘要: 安装 pip3 install python-wordpress-xmlrpc pip install python-wordpress-xmlrpc pip install python-frontmatter 使用 from wordpress_xmlrpc import Client, Wor 阅读全文
posted @ 2021-06-01 08:35 nuaazs 阅读(521) 评论(0) 推荐(0)
摘要: 0. shell基础 0.1 循环 类c语言 for ((i=1; i<=100; i ++)) do echo $i done in使用 for i in {1..100} do echo $i done seq使用 seq - print a sequence of numbers for i 阅读全文
posted @ 2021-06-01 08:32 nuaazs 阅读(82) 评论(0) 推荐(0)
摘要: 1. 获取目录文件列表和数目 import glob # path_file_number=glob.glob('D:/case/test/testcase/checkdata/*.py')#或者指定文件下个数 path_file_number=glob.glob(pathname='*.py') 阅读全文
posted @ 2021-06-01 08:31 nuaazs 阅读(136) 评论(0) 推荐(0)
摘要: 本文代码基于PyTorch 1.0版本,需要用到以下包: import collections import os import shutil import tqdm import numpy as np import PIL.Image import torch import torchvisio 阅读全文
posted @ 2021-06-01 08:27 nuaazs 阅读(153) 评论(0) 推荐(0)