@@ -655,9 +655,7 @@ def generate_sql_query(
655655 'dso="CHARINT=N;CHARFLOAT=N;CHARTIME=N;CONVERTERRORS=N" '
656656 f'm="{ max_rows } " to="30" s="1">'
657657 )
658- query = query .replace (
659- "\t " , " "
660- ).replace (
658+ query = query .replace ("\t " , " " ).replace (
661659 "\n " , " "
662660 ) # Replace new lines and tabs that are typical in formatted SQL queries with spaces.
663661
@@ -845,15 +843,17 @@ def generate_read_query(
845843 if self ._is_summary (read_type ):
846844 params ["selectedFields" ] = "Links;Items.Value.Timestamp;Items.Value.Value"
847845 if get_status :
848- params ["selectedFields" ] += (
846+ params [
847+ "selectedFields"
848+ ] += (
849849 ";Items.Value.Good;Items.Value.Questionable;Items.Value.Substituted"
850850 )
851851 elif read_type in [ReaderType .INT , ReaderType .RAW , ReaderType .SHAPEPRESERVING ]:
852852 params ["selectedFields" ] = "Links;Items.Timestamp;Items.Value"
853853 if get_status :
854- params ["selectedFields" ] += (
855- ";Items.Good;Items.Questionable;Items.Substituted "
856- )
854+ params [
855+ "selectedFields "
856+ ] += ";Items.Good;Items.Questionable;Items.Substituted"
857857 elif read_type == ReaderType .SNAPSHOT :
858858 params ["selectedFields" ] = "Timestamp;Value"
859859 if get_status :
@@ -1077,7 +1077,9 @@ def read_tag(
10771077 if get_status :
10781078 df ["Status" ] = (
10791079 # Values are boolean, but no need to do .astype(int)
1080- df ["Questionable" ] + 2 * (1 - df ["Good" ]) + 4 * df ["Substituted" ]
1080+ df ["Questionable" ]
1081+ + 2 * (1 - df ["Good" ])
1082+ + 4 * df ["Substituted" ]
10811083 )
10821084 df = df .drop (columns = ["Good" , "Questionable" , "Substituted" ])
10831085
0 commit comments