Skip to content

Commit

Permalink
Merge pull request #52 from UMDBPP/develop
Browse files Browse the repository at this point in the history
minor import fixes
  • Loading branch information
zacharyburnett authored Apr 10, 2021
2 parents 2b9db8f + 5dd12d9 commit 669e47b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
7 changes: 5 additions & 2 deletions client/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
from dateutil.parser import parse as parse_date

from client import DEFAULT_INTERVAL_SECONDS
from client.gui import PacketRavenGUI
from client.retrieve import retrieve_packets
from packetraven.connections import APRSDatabaseTable, APRSfi, APRSis, PacketGeoJSON, RawAPRSTextFile, SerialTNC
from packetraven.predicts import PredictionAPIURL, PredictionError, get_predictions
Expand Down Expand Up @@ -201,6 +200,8 @@ def main():
}

if using_gui:
from client.gui import PacketRavenGUI

PacketRavenGUI(
callsigns,
start_date,
Expand Down Expand Up @@ -304,7 +305,9 @@ def main():
database_kwargs['database_password'] = database_password

database = APRSDatabaseTable(
**database_kwargs, **ssh_tunnel_kwargs, callsigns=callsigns
**{key.replace('database_', ''): value
for key, value in database_kwargs.items()},
**ssh_tunnel_kwargs, callsigns=callsigns
)
LOGGER.info(f'connected to {database.location}')
connections.append(database)
Expand Down
1 change: 1 addition & 0 deletions packetraven/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

# `dh/dt` based on historical flight data
FREEFALL_DESCENT_RATE = lambda altitude: -5.8e-08 * altitude ** 2 - 6.001
# TODO: propagate uncertainty
FREEFALL_DESCENT_RATE_UNCERTAINTY = lambda altitude: 0.2 * FREEFALL_DESCENT_RATE(altitude)

# integration of `(1/(dh/dt)) dh` based on historical flight data
Expand Down

0 comments on commit 669e47b

Please sign in to comment.