diff --git a/u4py/io/sql.py b/u4py/io/sql.py index 441fb905a713e12661991a3ff751a9dedfe01b44..f884405cd2ac71503373b5ce3a14b2e65e8b671e 100644 --- a/u4py/io/sql.py +++ b/u4py/io/sql.py @@ -473,12 +473,12 @@ def gen_timeseries_queries( time = np.array([u4conv.sql_key_to_time(k) for k in key_list]) if where: queries = [ - (file_path, f"SELECT {k} FROM '{table}' WHERE {where}", jj) + (file_path, f'SELECT "{k}" FROM "{table}" WHERE {where}', jj) for jj, k in enumerate(key_list) ] else: queries = [ - (file_path, f"SELECT {k} FROM '{table}'", jj) + (file_path, f'SELECT "{k}" FROM "{table}"', jj) for jj, k in enumerate(key_list) ] return time, queries diff --git a/u4py/scripts/plotting/plot_psi_as_tiffs.py b/u4py/scripts/plotting/plot_psi_as_tiffs.py index 790a57ecd4924e4a243552e884b9ac2a4e1ea710..36b59bac25688e378bd5a2b7ad93d7cb373d53fc 100644 --- a/u4py/scripts/plotting/plot_psi_as_tiffs.py +++ b/u4py/scripts/plotting/plot_psi_as_tiffs.py @@ -22,7 +22,7 @@ def main(): project = u4proj.get_project( required=["base_path"], proj_path=Path( - "~/Documents/umwelt4/Convert_EGMS_to_Tiff.u4project" + "~/Documents/umwelt4/Convert_EGMS_gpkg_to_tif.u4project" ).expanduser(), ) folder_list = [