Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove 'ntries' database connection argument #69

Merged
merged 1 commit into from
May 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions ch_util/_db_tables.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ def event(
# ====================================


def connect_peewee_tables(read_write=False, reconnect=False, ntries=1):
def connect_peewee_tables(read_write=False, reconnect=False):
"""Initialize the connection to the CHIME data index database.

This function uses the current database connector from
Expand All @@ -156,7 +156,7 @@ def connect_peewee_tables(read_write=False, reconnect=False, ntries=1):
Force a reconnection.
"""

chimedb.core.connect(read_write, reconnect, ntries)
chimedb.core.connect(read_write, reconnect)

# Set the default, no-permissions user.
set_user("Chime")
Expand Down
4 changes: 2 additions & 2 deletions ch_util/finder.py
Original file line number Diff line number Diff line change
Expand Up @@ -239,15 +239,15 @@ class Finder(object):
# Constructors and setup
# ----------------------

def __init__(self, acqs=(), node_spoof=None, ntries=1):
def __init__(self, acqs=(), node_spoof=None):
import copy

# Which nodes do we have available?
host = socket.gethostname().split(".")[0]
self._my_node = []
self._node_spoof = node_spoof

connect_database(ntries=ntries)
connect_database()

if not node_spoof:
for n in (
Expand Down
Loading