Skip to main content

Parallel integration of single degree-of-freedom systems.

Project description

This version of code is refactored by Vedant Mathur

TAR Software Package Repository

Code combining preprocessing, data collection, training and inference to generate automated disaster reports.

Key Files

  • tar_main.py - File that consolidates relevant functions to produce a report
  • date2template* - Files that do different collectiong/processing of USGIS data to be added to the briefings
  • classifiers.py - Calls classifiers (regression, SVN, GAN, CNN) and runs a majority vote to determine the final classification for sentences according to 4 categories (buildings, infrastructure, resilience, other)
  • resilience_curve.py - Generates resilience curves, and calculates t0 and t1 (to calculate recovery time for disaster)
  • config.ini - Set of parameters to control briefing generation
  • data - Folder containing log of earthquakes, tweets and news articles

Usage

Generating a report

To generate a report, run python3 tar_main.py.

This would iterate through earthquakes listed in the earthquake log and output a report to the "reports" directory.

Generating a resilience curve

To do this, call the generateResilience function in resilience_curve.py. It takes the following parameters -

  • ruptureTime - Reference time to when the earthquake happened (e.g. 2021-02-24 02:05:59)
  • twitterFile - CSV with tweets for earthquake
  • keywords - keywords to filter tweets by

An example call would be generateResilience("2021-02-24 02:05:59", "data/tweets/ArgentinaTweets.csv", ["electricity", "lights"])

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

tear-0.0.0.tar.gz (15.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

tear-0.0.0-py3-none-any.whl (15.8 kB view details)

Uploaded Python 3

File details

Details for the file tear-0.0.0.tar.gz.

File metadata

  • Download URL: tear-0.0.0.tar.gz
  • Upload date:
  • Size: 15.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.13.1

File hashes

Hashes for tear-0.0.0.tar.gz
Algorithm Hash digest
SHA256 c538d1d4fd5d5498690a5923efb362b9205ccbf9df1c234e8e378a8caff5ae6c
MD5 5e5a0fa032a0c9ed1e15dcf660c67878
BLAKE2b-256 f1854be91ac61bbb0be0e9e9de59cd58cbc959f79e4f9e9e38539297b6446f98

See more details on using hashes here.

File details

Details for the file tear-0.0.0-py3-none-any.whl.

File metadata

  • Download URL: tear-0.0.0-py3-none-any.whl
  • Upload date:
  • Size: 15.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.13.1

File hashes

Hashes for tear-0.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f8d3a3c8e41560e6a8854eddc5de1b6aaa12ccb82605b1d024e7cab0cb5fb086
MD5 d40faca4ff66648a85f966504b3b2fcc
BLAKE2b-256 37b803458001809c430f6decb3522421b6f4610558e0c0847a92a95022fddaa0

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page