Skip to content

Commit

Permalink
Opening pointing database in read-only.
Browse files Browse the repository at this point in the history
  • Loading branch information
astronomerritt committed Feb 9, 2024
1 parent 794c9fb commit e4126e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sorcha/modules/PPReadPointingDatabase.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def PPReadPointingDatabase(bsdbname, observing_filters, dbquery, surveyname):

pplogger = logging.getLogger(__name__)

con = sqlite3.connect(bsdbname)
con = sqlite3.connect("file:" + bsdbname + "?mode=ro", uri=True)

try:
df = pd.read_sql_query(dbquery, con)
Expand Down

0 comments on commit e4126e2

Please sign in to comment.