Iydon Liang

Results 14 issues of Iydon Liang

忘记书里面怎么讲虚拟环境了, 或许可以考虑替代 `requirements.txt` 文件, 比如 `Pipfile` (项目根目录), 一方面安装方式简化了 (`pipenv install`), 另一方面, 可以更好确定各个库的版本及依赖关系. 比如下面我使用的例子: ``` [[source]] name = "pypi" url = "https://pypi.mirrors.ustc.edu.cn/simple" verify_ssl = true [dev-packages] [packages] torch = "==1.3.1" torchvision...

1. 上传辅助库至 [pypi.org](https://pypi.org/project/sustechthesis/) 2. 上传文类至 [ctan.org](https://ctan.org/) 3. 上传文档至 [Read the Docs](http://sustechthesis.readthedocs.io/)

https://github.com/ecomfe/awesome-echarts/blob/9027bce29a0599912d5ec2ef77480aba6022bcf2/README.md#L75 ```markdown [liquidfill 水球图](https://github.com/ecomfe/echarts-liquidfill) ```

Adding `encoding='utf-8'` to the following code solves the problem. https://github.com/jldiaz/mkdocs-plugin-tags/blob/fec38cd051f64381c116455e61d93ae5dd8d7340/tags/plugin.py#L106 https://github.com/jldiaz/mkdocs-plugin-tags/blob/fec38cd051f64381c116455e61d93ae5dd8d7340/tags/plugin.py#L127

仓库名称为 SUSTech_Tools,因此可以整理一下常用的工具,比如将 tis 平台的选课、查看成绩等接口以库的形式整合,然后,使用 `click` 等命令行交互相关的库制作命令行工具(只是一个幻想)。另外,可以使用 [pipenv](https://github.com/pypa/pipenv) 或者 [poetry](https://github.com/python-poetry/poetry) 等工具管理虚拟环境与依赖。 可供参考的两个脚本:[研究生分数查询及 GPA 计算](https://gist.github.com/iydon/6b518fc8cc9db61da3d238a51d0ef582)、[电费余量查询](https://gist.github.com/iydon/83ae206e5391c03731ec4235793b6ed7),这两个脚本的创作时间相差较大,因此风格不一致。不过,目前我还没有想好整合的形式,下面调用形式仅抛砖引玉。 ```python from sustech import SUSTech # or `from sustech import CAS` sustech = SUSTech.login(username=..., password=...) sustech.tis.select(...) #...

enhancement

建议标记所使用的 python 库的版本 (`requirements.txt`, `Pipfile`, etc.). 好像, 您使用的 `tensorflow` 在现在 (2019.11.21) 已非 latest (v2.0.0) 版本.

https://github.com/lemoxiao/Latex-Part1/blob/0ab8ed3385cf77f45ef2ba7bfed74f97898fb377/%E5%9B%BD%E5%86%85%E9%AB%98%E6%A0%A1/sustechthesis-master(%E5%8D%97%E6%96%B9%E7%A7%91%E6%8A%80%E5%A4%A7%E5%AD%A6%E6%9C%AC%E7%A7%91)/sustechthesis.cls#L2 You may refer to [sustechthesis](https://github.com/Iydon/sustechthesis) project now.

https://github.com/iydon/of.yaml/blob/e9ddf290fa23dd40a6ac8638a358e5d90c8d63f8/foam/util/private/case.py#L37-L38 ```python def required(self, t: float, dt: float): return self.dict_without_keys(vars(), 'self') ```

bug

enhancement

# Code ```python foam = Foam.from_foam(...) ``` # Reference - https://doc.cfd.direct/openfoam/user-guide-v9/basic-file-format - https://github.com/lark-parser/lark - https://www.openfoam.com/documentation/user-guide/2-openfoam-cases/2-2-basic-inputoutput-file-format

enhancement