Python tools to support scientific computing experiments.
Project description
SEKit (science experiment kit, エスイーキット)
科学計算実験のために、作者が自分で使うように作成したPythonツール郡です。 それぞれ独立して使用することができますが、親和性が高いので連携して使うことがおすすめです。
現在は以下のツールを提供しています。 各ツールの使い方は、それぞれのツールが保存されているディレクトリのREADMEを参照してください。
- Spartan
- クラスタマシン用分散実行ツール。ローカルマシンだけでも使えます。
- ドキュメント: docs/spartan.md
- EIO
- 実験用関数をいい感じに保存するためのデコレータ
- ドキュメント: docs/eio.md
- Search
- 実験結果が保存されたJSONファイルを集約して、CSV形式に変換するツール
- ドキュメント: docs/search.md
- Stats
- Searchの拡張ツール. Searchの結果から統計値を算出するツール
- ドキュメント: docs/stats.md
- jymatplot
- JSONかYAMLからグラフ画像を描画するmatplotlibのラッパー
- ドキュメント: docs/jymatplot.md
インストール方法
以下の pip install でインストールできます。
pip install sekit
【開発者向け】注意
テストのセットアップ
テストを実行するためには、以下の手順を実行する必要があります。 以下の手順のコマンドはすべて本リポジトリのルートディレクトリで実行されるものとします。
- 例えば以下のコマンドで、SSH接続用の秘密鍵と公開鍵を作る
ssh-keygen -t rsa -b 4096 -C "your_email@example.com"
この時、~/.ssh/にid_rsaとid_rsa.pubができる。
- 以下のコマンドを実行して、このファイルがあるディレクトリにid_rsa.pubを保存する。
cp ~/.ssh/id_rsa.pub ./tests/spartan/
- 以下のコマンドを実行して、Dockerイメージをビルドする
docker build -t test_ssh_server ./tests/spartan/
- 以下のコマンドを実行して、テスト用Dockerコンテナを起動する。
docker run -d -p 2222:22 --name test_ssh_container test_ssh_server
- /etc/hostsを設定してtest-ssh-serverというホスト名で127.0.0.1につながるようにする。
127.0.0.1 test-ssh-server
- ~/.ssh/configに以下の設定を追加する。
Host test-ssh-server
HostName test-ssh-server
User root
Port 2222
確認方法
ssh test-ssh-server
テストの実行方法
テストコードはpytestで実装されています。以下のコマンドでテスト可能です。
pytest
作者情報
- 名前: 川口英俊(Hidetoshi KAWAGUCHI)
- 職業: データサイエンティスト
- 学位: 博士(情報科学)
- Twitter: Hidetoshi_RM
- Zenn: https://zenn.dev/hidetoshi
- Qiita: https://qiita.com/Hidetoshi_Kawaguchi
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file sekit-1.0.0.tar.gz.
File metadata
- Download URL: sekit-1.0.0.tar.gz
- Upload date:
- Size: 18.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.11.9 Linux/5.15.0-89-generic
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3c8f9aa8490017f83b411e8aef7f856bae2bcd893212ec9d20c758573b2a6ef5
|
|
| MD5 |
d18d58cd7113680af901970aebe931c5
|
|
| BLAKE2b-256 |
989344fbc6b4ac558c5ee68f7148e27e4b9274b0b25ebdd7d94bf6a44bedc864
|
File details
Details for the file sekit-1.0.0-py3-none-any.whl.
File metadata
- Download URL: sekit-1.0.0-py3-none-any.whl
- Upload date:
- Size: 24.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.11.9 Linux/5.15.0-89-generic
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1bafc98fe1b774a8f506c5f46de88c608e38fb34a3f5cb6bc623d594de59ad8b
|
|
| MD5 |
ed2c8e6d7fdfa11ee5466d5a83a26a6b
|
|
| BLAKE2b-256 |
6234a3b73bd13d52d76b020aae19556e153a17810899789680aa038c8bba8325
|