semvec/pypi-packages huggingface dataset:
py-resw 0.0.1
Repeating earthquake discovery using cross-correlation and differential arrival times
Requires Python: >=3.8

# PyRES
Python code for repeating earthquakes

# Abstract
The software package PyRES is an open source seismological software. It consists of some utilities for data preparation (utils directory) and the main program (xxxx.py). PyRES is designed to discriminate repeating earthquakes starting from a family of candidate repeating earthquakes, based on the cross-correlation values and S-P time difference between pairs of earthquakes (estimated using cross spectrum). 

# Motivation and significance
The code PyRES is inspired to previously published methods that combine both seismic waveform similarity, using cross-correlation function, and differential S-P travel time measured at each seismic station (Chen et al., 2008 and Shakibay Senobari and Funning, 2019).
The code is versatile and works with and without P and S-wave phase pickings. At the moment the reading of phases in archive Hypoellipse and Hypoinverse formats are implemented. The code has been tested using synthetic and real data, providing accurate results. It contributes to the implementations of open-source Python packages in seismology aiming to support the activities of researchers and the reproducibility of scientific results.

# Requirements
Python installed to run the program (version 3.0 or more) is required [http://python.org]. Dependancies include Obspy, Numpy, Scipy, Scikit-learn, mtspec (©2009-2016, Lion Krischer, Moritz Beyreuther) and Matplotlib libraries. to do

# How to use it
A complete step-by-step working flow is reported in the jupiter notebook named
PyRES.ipynb

# References

Sugan, M., Campanella, S., Vuan, A., Shakibay Senobari, N., (2022). A Python Code for Detecting Repeating Earthquakes from Self-similar Waveforms (PyRES). Submitted to BSSA ?

Shakibay Senobari, N., Funning G. J., (2019), Widespread Fault Creep in the Northern San Francisco Bay Area Revealed by Multistation Cluster Detection of Repeating Earthquakes, Geophysical Research Letters, 46(12), 6425-6434, https://doi.org/10.1029/2019GL082766.

Chen, K. H., Nadeau, R. M. and Rau, R.-J. (2008). Characteristic repeating microearthquakes on an arc-continent collision boundary – the Chihshang fault of eastern Taiwan, Earth Planet. Sci. Lett., 276, 262–272, https://doi.org/10.1016/j.epsl.2008.09.021.
DirectFolderBrowser 22.1
A simple file and folder browser for Panda3D
Requires Python: >=3.6

# DirectFolderBrowser
A file and folder browser for Panda3D using DirectGUI

## Features
This is a simple fullscreen file and folder browser with a basic featureset. Currently implemented are:

- Browsing files and folders
- Display content as symbols or in a detailed list
- Show/Hide hidden files (using unix like leading dot)
- Create new folders
- Filter by file extension
- Resizes with window size changes
- Makes use of the <a href="https://github.com/fireclawthefox/DirectTooltip">Tooltip class</a>

## Install
Install the DirectFolderBrowser via pip

```bash
pip install DirectFolderBrowser
```

## How to use
To add a browser instance to your running Panda3D application, just instantiate it like shown here:
```python3
from DirectFolderBrowser.DirectFolderBrowser import DirectFolderBrowser

# this command will be called by the browser
def callbackCommand(ok):
    if ok == 1:
        print("User Clicked OK")

        # print the selected file
        print(browser.get())

        browser.hide()
        # Destroy the browser if it's not needed anymore
        #browser.destroy()
    elif ok == 0:
        print("User Clicked Cancel")
        browser.hide()
        browser.destroy()

# show the browser as file browser
browser = DirectFolderBrowser(callbackCommand, fileBrowser=True)
```

### Parameters
The DirectFolderBrowser accepts a few arguments.
- <b>command:</b> The command that will be called on closing the browser
- <b>fileBrowser:</b> If set to True the browser will show files, otherwise it will only show folders
- <b>defaultPath:</b> The initial path the browser will be set to show
- <b>defaultFilename:</b> The filename that will be set by default, <i>only usefull if fileBrowser is True</i>
- <b>fileExtensions:</b> A list of extensions. Only files with those extensions will be shown. <i>Only usefull if fileBrowser is True</i>
- <b>tooltip:</b> An instance of the <a href="https://github.com/fireclawthefox/DirectTooltip">Tooltip class</a> to display tooltips for certain parts of the editor
- <b>iconDir:</b> A directory path that contains replacement images. It must contain all required images which are:<br />
    File.png<br />
    Folder.png<br />
    FolderNew.png<br />
    FolderShowHidden.png<br />
    FolderUp.png<br />
    Reload.png<br />
- <b>parent:</b> Another DirectGUI element which has pixel2d as root parent.<br />
    The browser frame is placed centered so a frame for example should have equal sizes in horizontal and vertical directions<br />
    e.g. frameSize=(-250,250,-200,200)<br />
SlappPy-Slate 1.14.7
SlappPy is the Python support and generation code for Slapp and Dola.
Requires Python: >=3.9, <4
Keywords: slapp,slate,splatoon

# SlapPy
SlapPy is the Python support and generation code for [Slapp](https://github.com/kjhf/SplatTag) and [Dola](https://github.com/kjhf/DolaBot).
Code on [Github](https://github.com/kjhf/SlapPy).

## Requirements
- Python 3.9+
* Create a `.env` in the repository root with the following values:

```py
# Required values:
# Source address for Battlefy backend
CLOUD_BACKEND="https://xxxxx.cloudfront.net"
# Path to SplatTagConsole for Slapp things
SLAPP_CONSOLE_PATH=".../SplatTagConsole.dll"
# Path to the Slapp App Data folder
SLAPP_DATA_FOLDER=".../SplatTag"

# Optional values depending on requirements:
# Database variables if using the database, which are:
DATABASE_HOST="localhost:5000"
DATABASE_NAME="database"
DATABASE_USER="user"
DATABASE_PASSWORD="user"
# A Discord bot token if using the backtrace:
BOT_TOKEN="xxxxxx.xxxxxx.xxxxxx"
# Challonge credentials if using Challonge downloaders
CHALLONGE_API_KEY="xxxx"
CHALLONGE_USERNAME="YourUsername"
# Smash GG credentials if using Smash GG downloaders 
SMASH_GG_API_KEY="xxxx"
```

## Distribution
Up-version by changing [setup.py](setup.py).

The following commands should be entered into the venv console:

Windows:

    rmdir /S build
    rmdir /S dist
    py -m pip install --upgrade build
    py -m build
    py -m pip install --upgrade twine
    py -m twine upload dist/*

Linux:

    rm -r build
    rm -r dist
    python3 -m pip install --upgrade build
    python3 -m build
    python3 -m pip install --upgrade twine
    python3 -m twine upload dist/*

## Updating the Database
[new_sources_file.py](./src/slapp_py/misc/new_sources_file.py) has the steps broken down to generate new sources from scratch.
The main code will look something like:

```py
if __name__ == '__main__':
    import dotenv
    import logging
    from slapp_py.misc.new_sources_file import full_rebuild
    
    # Load the environment variables as listed above, populated into the .env file
    dotenv.load_dotenv()
    # And setup logging.
    logging.basicConfig(level=logging.INFO)

    # To generate the new sources file, where the parameter is skipping pauses.
    # If pauses are skipped, patching the database is assumed.
    # In 'False' mode, the script will ask.
    full_rebuild(False)
```