Useful quick scripts
Project description
astrobeckit
A small package full of useful little scripts for astro.
Installation
pip install astrobeckit
Usage
[activate python environment]
And then use any of the following commands on the command line.
papergirl
This script will scrape the arxiv new posts page for all the new papers of the day, cross check these against lists of authors and key words that you are interested in and only return those specific papers. It will then email this curated list straight to your inbox. Note that this script requires the following environment variables to be set
PAPERGIRL_PASSWORD # the app specific password
PAPERGIRL_FROM # the email address it should be sent from
PAPERGIRL_TO # the email address it should be sent to
The author and topic lists should also exist even if blank. To run:
papergirl (--topics [location of topics file] --authors [location of authors file])`
synchro
This script creates a file called "splash.filenames" that lists in the correct filenames you need for a synchronised movie with splash. It is designed to be used when you have several simulation folders and for whatever reason the files have gotten out of synch. It requires the log files and a file that lists the folders you are interested in, separated as a new line. To run:
synchro --folders_file [file that lists the folders of interest]
(--prefix [file name prefix, e.g. disc]
--end [when to stop movie])
auto_resubmit
This script is specific to the AVON cluster at Warwick. Looks for all the subfolders in the current directory and resubmits the simulation in there if it hasn't finished. Assumes that the run submission script is called "run_sbatch.sh".
This script also assumes the existance of multi_run.sh, a short script that
generates linked submission jobs. It is also uploaded to this repository but
must be downloaded separately and is assumed to be in ~/runs/. To run:
auto_resubmit (--search_string [masks for a string in the folder names]
--dry_run [if True, just does a test run]
--n_sub [how many linked jobs do you want submitted])
Project details
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 astrobeckit-0.1.4.tar.gz.
File metadata
- Download URL: astrobeckit-0.1.4.tar.gz
- Upload date:
- Size: 22.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f25ef737ff06e0226e40bb27695b1f2352cc7e7aa6c6967d646fa59f41b01dfd
|
|
| MD5 |
7f710c5902aa8f308bd38e9d77fedc84
|
|
| BLAKE2b-256 |
882191617b2b8b4add1f4c68434293f65121ffbdf3d3662a20d6e42138dbfffe
|
File details
Details for the file astrobeckit-0.1.4-py3-none-any.whl.
File metadata
- Download URL: astrobeckit-0.1.4-py3-none-any.whl
- Upload date:
- Size: 22.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e850e7e1fe4e4dcc997484a767a70084b80eb709bcf9635cf49e024221c184a8
|
|
| MD5 |
bd305b64d41963d36e0467aec21bc05e
|
|
| BLAKE2b-256 |
2a3fbd43f5d7e4aae2a0ff240c59f8d00c58e24b8e66d45e24bdbf5080f48a5e
|