@@ -185,7 +185,7 @@ def getAnnotations(self, annottype=None, codes=None, ids=None, **kwargs):
185
185
a = Annotations
186
186
self ._check_kwargs (['type' ], kwargs )
187
187
if 'type' in kwargs :
188
- warnings .warn (' The parameter \ ' type\ ' is deprecated. Please use the annottype parameter instead.' ,
188
+ warnings .warn (" The parameter 'type' is deprecated. Please use the annottype parameter instead." ,
189
189
DeprecationWarning , stacklevel = 2 )
190
190
annottype = kwargs ['type' ]
191
191
if annottype :
@@ -238,7 +238,7 @@ def getCVs(self, cvtype, **kwargs):
238
238
"""
239
239
self ._check_kwargs (['type' ], kwargs )
240
240
if 'type' in kwargs :
241
- warnings .warn (' The parameter \ ' type\ ' is deprecated. Please use the cvtype parameter instead.' ,
241
+ warnings .warn (" The parameter 'type' is deprecated. Please use the cvtype parameter instead." ,
242
242
DeprecationWarning , stacklevel = 2 )
243
243
cvtype = kwargs ['type' ]
244
244
@@ -430,7 +430,7 @@ def getMethods(self, ids=None, codes=None, methodtype=None, **kwargs):
430
430
"""
431
431
self ._check_kwargs (['type' ], kwargs )
432
432
if 'type' in kwargs :
433
- warnings .warn (' The parameter \ ' type\ ' is deprecated. Please use the medtype parameter instead.' ,
433
+ warnings .warn (" The parameter 'type' is deprecated. Please use the medtype parameter instead." ,
434
434
DeprecationWarning , stacklevel = 2 )
435
435
methodtype = kwargs ['type' ]
436
436
@@ -517,7 +517,7 @@ def getSamplingFeatures(self, ids=None, codes=None, uuids=None,
517
517
"""
518
518
self ._check_kwargs (['type' ], kwargs )
519
519
if 'type' in kwargs :
520
- warnings .warn (' The parameter \ ' type\ ' is deprecated. Please use the sftype parameter instead.' ,
520
+ warnings .warn (" The parameter 'type' is deprecated. Please use the sftype parameter instead." ,
521
521
DeprecationWarning , stacklevel = 2 )
522
522
sftype = kwargs ['type' ]
523
523
if results :
@@ -591,7 +591,7 @@ def getActions(self, ids=None, acttype=None, sfid=None, **kwargs):
591
591
"""
592
592
self ._check_kwargs (['type' ], kwargs )
593
593
if 'type' in kwargs :
594
- warnings .warn (' The parameter \ ' type\ ' is deprecated. Please use the acttype parameter instead.' ,
594
+ warnings .warn (" The parameter 'type' is deprecated. Please use the acttype parameter instead." ,
595
595
DeprecationWarning , stacklevel = 2 )
596
596
acttype = kwargs ['type' ]
597
597
a = Actions
@@ -641,7 +641,7 @@ def getUnits(self, ids=None, name=None, unittype=None, **kwargs):
641
641
"""
642
642
self ._check_kwargs (['type' ], kwargs )
643
643
if 'type' in kwargs :
644
- warnings .warn (' The parameter \ ' type\ ' is deprecated. Please use the unittype parameter instead.' ,
644
+ warnings .warn (" The parameter 'type' is deprecated. Please use the unittype parameter instead." ,
645
645
DeprecationWarning , stacklevel = 2 )
646
646
unittype = kwargs ['type' ]
647
647
q = self ._session .query (Units )
@@ -779,7 +779,7 @@ def getResults(self, ids=None, restype=None, uuids=None, actionid=None, simulati
779
779
query = self ._session .query (Results )
780
780
self ._check_kwargs (['type' , 'sfid' ], kwargs )
781
781
if 'type' in kwargs :
782
- warnings .warn (' The parameter \ ' type\ ' is deprecated. Please use the restype parameter instead.' ,
782
+ warnings .warn (" The parameter 'type' is deprecated. Please use the restype parameter instead." ,
783
783
DeprecationWarning , stacklevel = 2 )
784
784
restype = kwargs ['type' ]
785
785
if restype :
@@ -798,8 +798,8 @@ def getResults(self, ids=None, restype=None, uuids=None, actionid=None, simulati
798
798
if actionid :
799
799
query = query .join (FeatureActions ).filter_by (ActionID = actionid )
800
800
if 'sfid' in kwargs :
801
- warnings .warn (' The parameter \ ' sfid\ ' is deprecated. '
802
- ' Please use the sfids parameter instead and send in a list.' ,
801
+ warnings .warn (" The parameter 'sfid' is deprecated. " +
802
+ " Please use the sfids parameter instead and send in a list." , # noqa
803
803
DeprecationWarning , stacklevel = 2 )
804
804
if kwargs ['sfid' ]:
805
805
query = query .join (FeatureActions ).filter_by (SamplingFeatureID = kwargs ['sfid' ])
@@ -1087,7 +1087,7 @@ def getEquipment(self, codes=None, equiptype=None, sfid=None, actionid=None, **k
1087
1087
"""
1088
1088
self ._check_kwargs (['type' ], kwargs )
1089
1089
if 'type' in kwargs :
1090
- warnings .warn (' The parameter \ ' type\ ' is deprecated. Please use the equiptype parameter instead.' ,
1090
+ warnings .warn (" The parameter 'type' is deprecated. Please use the equiptype parameter instead." ,
1091
1091
DeprecationWarning , stacklevel = 2 )
1092
1092
equiptype = kwargs ['type' ]
1093
1093
@@ -1191,7 +1191,7 @@ def getExtensionProperties(self, exptype=None, **kwargs):
1191
1191
# Todo what values to use for extensionproperties type
1192
1192
self ._check_kwargs (['type' ], kwargs )
1193
1193
if 'type' in kwargs :
1194
- warnings .warn (' The parameter \ ' type\ ' is deprecated. Please use the exptype parameter instead.' ,
1194
+ warnings .warn (" The parameter 'type' is deprecated. Please use the exptype parameter instead." ,
1195
1195
DeprecationWarning , stacklevel = 2 )
1196
1196
exptype = kwargs ['type' ]
1197
1197
e = ExtensionProperties
@@ -1222,7 +1222,7 @@ def getExternalIdentifiers(self, eitype=None, **kwargs):
1222
1222
"""
1223
1223
self ._check_kwargs (['type' ], kwargs )
1224
1224
if 'type' in kwargs :
1225
- warnings .warn (' The parameter \ ' type\ ' is deprecated. Please use the eitype parameter instead.' ,
1225
+ warnings .warn (" The parameter 'type' is deprecated. Please use the eitype parameter instead." ,
1226
1226
DeprecationWarning , stacklevel = 2 )
1227
1227
eitype = kwargs ['type' ]
1228
1228
e = ExternalIdentifierSystems
@@ -1415,9 +1415,9 @@ def getResultValues(self, resultids, starttime=None, endtime=None, lowercols=Tru
1415
1415
df .columns = [self ._get_columns (ResultValues )[c ] for c in df .columns ]
1416
1416
else :
1417
1417
warnings .warn (
1418
- ' In a near-future release, '
1419
- ' the parameter \ ' lowercols\ ' default will be changed to False, '
1420
- ' and later the parameter may be removed.' ,
1418
+ " In a near-future release, " + # noqa
1419
+ " the parameter 'lowercols' default will be changed to False, " +
1420
+ " and later the parameter may be removed." , # noqa
1421
1421
DeprecationWarning , stacklevel = 2 )
1422
1422
return df
1423
1423
except Exception as e :
@@ -1487,7 +1487,7 @@ def getRelatedModels(self, modid=None, code=None, **kwargs):
1487
1487
"""
1488
1488
self ._check_kwargs (['id' ], kwargs )
1489
1489
if 'id' in kwargs :
1490
- warnings .warn (' The parameter \ ' id\ ' is deprecated. Please use the modid parameter instead.' ,
1490
+ warnings .warn (" The parameter 'id' is deprecated. Please use the modid parameter instead." ,
1491
1491
DeprecationWarning , stacklevel = 2 )
1492
1492
modid = kwargs ['id' ]
1493
1493
m = self ._session .query (Models ).select_from (RelatedModels ).join (RelatedModels .ModelObj )
0 commit comments