semvec/pypi-packages huggingface dataset:
TESS-PRF 0.1.3
Tools to display the TESS pixel response function (PRF) at any location on the detector
Requires Python: >=3.6

# TESS_PRF
Tools to display the TESS pixel response function (PRF) at any location on the detector.

By default, will access the relevant [PRF files on MAST](https://heasarc.gsfc.nasa.gov/docs/tess/observing-technical.html#point-spread-function) (internet required), but you can also download these files and reference their local directory.  There is also an option to generate a 2D Gaussian PRF, however appropriate that may be.

This package is primarily for estimating how the light from a point source is distributed given its position in a TESS Target Pixel File (TPF) or [TESScut](https://mast.stsci.edu/tesscut/) postage stamp. Referencing the real TESS PRF models, you'll need to provide the Camera, CCD, and Sector numbers, along with the column and row numbers at approximately the center of your TPF to interpolate a PRF appropriate for that postage stamp.  This package assumes the PRF doesn't change considerably within a small TPF.  You can then position the PRF model by passing the relative row and column location within the TPF to the "resample" method. The pixel locations follow WCS convention, that an integer value corresponds to the center of a pixel.

```python
import PRF
import matplotlib.pyplot as plt

# Suppose the following for a TPF of interest
cam = 3
ccd = 4
sector = 13
colnum = 113 #middle of TPF
rownum = 298 #middle of TPF

prf = PRF.TESS_PRF(cam,ccd,sector,colnum,rownum)

# See what this looks like in the center of an 11x11 TPF
resampled = prf.locate(5.0, 5.0, (11,11))

plt.imshow(resampled)
plt.show()
```
With this result:
![PRF example](https://github.com/keatonb/TESS_PRF/raw/main/example.png)

To generate a Gaussian PRF to relocate within a TPF, call `PRF.Gaussian_PRF(sigma)` where `sigma` is in units of TESS pixels.

### Installation
TESS_PRF is pip installable with the command `pip install TESS_PRF`

Or clone this repository and run 
```bash
cd TESS_PRF
python -m build
pip install -e .
```
easy-myd 0.8
Send & recieve MYD without the fuss

# easy_myd

Send and receive MYD (without having to understand the MYD protocol). Built on top of [mydlib](https://github.com/TheMyanmarDollar/mydlib).

Currently configured for local nodes

Can be set to use external nodes by editing the `node_url` in `easy_myd/lib.py`

## Installation

Install Locally
```
pip install git+https://github.com/TheMyanmarDollar/easy_myd
```

Use pip (not live)

```
pip install easy-myd
```

## Usage

### Python

Existing Account that also uses the node for work

```python
from easy_myd import Account

acc = Account(seed="HEXSEEEEEEEEEEEED",node_url="http://127.0.0.1:8076",use_work_peers=True)

# get accounts MYD address
print(acc.public_address)

# processes any pending transactions
acc.receive()

# sends MYD to address
acc.send("myd_1donate14umib9krxm5k7cpr1owe64zozu4zzhhe5ty8quhor6em6m3qbrcr", 0.01)
```

THIS IS NOT CURRENTLY WORKING. THERE IS A BUG WHERE A USER CANNOT OPEN THEIR ACCOUNT. USE AN EXISTING ON THAT HAS ALREADY RECIEVED 1 TRANSACTION.
New Account using default public node https://tracker.myd.money/api/node (not live currently). This also uses the local machine for work generation

```python
from easy_myd import Account

acc = Account()

# get new account MYD address
print(acc.public_address)

# processes any pending transactions
acc.receive()

# sends MYD to address
acc.send("myd_1donate14umib9krxm5k7cpr1owe64zozu4zzhhe5ty8quhor6em6m3qbrcr", 0.01)
```

### CLI

```bash
# processes any pending blocks
easy_myd receive

# sends MYD to address (input via stdin)
easy_myd send
```