metno / pyaerocom

Python tools for the AeroCom project
https://pyaerocom.readthedocs.io/
GNU General Public License v3.0
23 stars 13 forks source link

EBAS reader: open sqlite3 db in read-only mode only #1232

Closed jgriesfeller closed 1 week ago

jgriesfeller commented 1 week ago

For some reason the sqlite database used to find the files to read is opened in write mode: https://github.com/metno/pyaerocom/blob/2f4610a6c80e3d1cecb9f065d6775064bf2d9c00/pyaerocom/io/ebas_file_index.py#L290 https://github.com/metno/pyaerocom/blob/2f4610a6c80e3d1cecb9f065d6775064bf2d9c00/pyaerocom/io/ebas_file_index.py#L323

This is not necessary. Just open the DB in readonly mode