@@ -585,14 +585,13 @@ def drop_channels(self, ch_names, on_missing="raise"):
585585 all_str = all ([isinstance (ch , str ) for ch in ch_names ])
586586 except TypeError :
587587 raise ValueError (
588- "'ch_names' must be iterable, got "
589- "type {} ({})." .format (type (ch_names ), ch_names )
588+ f"'ch_names' must be iterable, got type { type (ch_names )} ({ ch_names } )."
590589 )
591590
592591 if not all_str :
593592 raise ValueError (
594593 "Each element in 'ch_names' must be str, got "
595- "{}." . format ( [type (ch ) for ch in ch_names ])
594+ f" { [type (ch ) for ch in ch_names ]} ."
596595 )
597596
598597 missing = [ch for ch in ch_names if ch not in self .ch_names ]
@@ -1057,9 +1056,7 @@ class _BuiltinChannelAdjacency:
10571056 name = "bti248grad" ,
10581057 description = "BTI 248 gradiometer system" ,
10591058 fname = "bti248grad_neighb.mat" ,
1060- source_url = _ft_neighbor_url_t .substitute (
1061- fname = "bti248grad_neighb.mat"
1062- ), # noqa: E501
1059+ source_url = _ft_neighbor_url_t .substitute (fname = "bti248grad_neighb.mat" ),
10631060 ),
10641061 _BuiltinChannelAdjacency (
10651062 name = "ctf64" ,
@@ -1083,25 +1080,19 @@ class _BuiltinChannelAdjacency:
10831080 name = "easycap32ch-avg" ,
10841081 description = "" ,
10851082 fname = "easycap32ch-avg_neighb.mat" ,
1086- source_url = _ft_neighbor_url_t .substitute (
1087- fname = "easycap32ch-avg_neighb.mat"
1088- ), # noqa: E501
1083+ source_url = _ft_neighbor_url_t .substitute (fname = "easycap32ch-avg_neighb.mat" ),
10891084 ),
10901085 _BuiltinChannelAdjacency (
10911086 name = "easycap64ch-avg" ,
10921087 description = "" ,
10931088 fname = "easycap64ch-avg_neighb.mat" ,
1094- source_url = _ft_neighbor_url_t .substitute (
1095- fname = "easycap64ch-avg_neighb.mat"
1096- ), # noqa: E501
1089+ source_url = _ft_neighbor_url_t .substitute (fname = "easycap64ch-avg_neighb.mat" ),
10971090 ),
10981091 _BuiltinChannelAdjacency (
10991092 name = "easycap128ch-avg" ,
11001093 description = "" ,
11011094 fname = "easycap128ch-avg_neighb.mat" ,
1102- source_url = _ft_neighbor_url_t .substitute (
1103- fname = "easycap128ch-avg_neighb.mat"
1104- ), # noqa: E501
1095+ source_url = _ft_neighbor_url_t .substitute (fname = "easycap128ch-avg_neighb.mat" ),
11051096 ),
11061097 _BuiltinChannelAdjacency (
11071098 name = "easycapM1" ,
@@ -1113,25 +1104,19 @@ class _BuiltinChannelAdjacency:
11131104 name = "easycapM11" ,
11141105 description = "Easycap M11" ,
11151106 fname = "easycapM11_neighb.mat" ,
1116- source_url = _ft_neighbor_url_t .substitute (
1117- fname = "easycapM11_neighb.mat"
1118- ), # noqa: E501
1107+ source_url = _ft_neighbor_url_t .substitute (fname = "easycapM11_neighb.mat" ), # noqa: E501
11191108 ),
11201109 _BuiltinChannelAdjacency (
11211110 name = "easycapM14" ,
11221111 description = "Easycap M14" ,
11231112 fname = "easycapM14_neighb.mat" ,
1124- source_url = _ft_neighbor_url_t .substitute (
1125- fname = "easycapM14_neighb.mat"
1126- ), # noqa: E501
1113+ source_url = _ft_neighbor_url_t .substitute (fname = "easycapM14_neighb.mat" ), # noqa: E501
11271114 ),
11281115 _BuiltinChannelAdjacency (
11291116 name = "easycapM15" ,
11301117 description = "Easycap M15" ,
11311118 fname = "easycapM15_neighb.mat" ,
1132- source_url = _ft_neighbor_url_t .substitute (
1133- fname = "easycapM15_neighb.mat"
1134- ), # noqa: E501
1119+ source_url = _ft_neighbor_url_t .substitute (fname = "easycapM15_neighb.mat" ), # noqa: E501
11351120 ),
11361121 _BuiltinChannelAdjacency (
11371122 name = "KIT-157" ,
@@ -1179,49 +1164,37 @@ class _BuiltinChannelAdjacency:
11791164 name = "neuromag306mag" ,
11801165 description = "Neuromag306, only magnetometers" ,
11811166 fname = "neuromag306mag_neighb.mat" ,
1182- source_url = _ft_neighbor_url_t .substitute (
1183- fname = "neuromag306mag_neighb.mat"
1184- ), # noqa: E501
1167+ source_url = _ft_neighbor_url_t .substitute (fname = "neuromag306mag_neighb.mat" ), # noqa: E501
11851168 ),
11861169 _BuiltinChannelAdjacency (
11871170 name = "neuromag306planar" ,
11881171 description = "Neuromag306, only planar gradiometers" ,
11891172 fname = "neuromag306planar_neighb.mat" ,
1190- source_url = _ft_neighbor_url_t .substitute (
1191- fname = "neuromag306planar_neighb.mat"
1192- ), # noqa: E501
1173+ source_url = _ft_neighbor_url_t .substitute (fname = "neuromag306planar_neighb.mat" ), # noqa: E501
11931174 ),
11941175 _BuiltinChannelAdjacency (
11951176 name = "neuromag122cmb" ,
11961177 description = "Neuromag122, only combined planar gradiometers" ,
11971178 fname = "neuromag122cmb_neighb.mat" ,
1198- source_url = _ft_neighbor_url_t .substitute (
1199- fname = "neuromag122cmb_neighb.mat"
1200- ), # noqa: E501
1179+ source_url = _ft_neighbor_url_t .substitute (fname = "neuromag122cmb_neighb.mat" ), # noqa: E501
12011180 ),
12021181 _BuiltinChannelAdjacency (
12031182 name = "neuromag306cmb" ,
12041183 description = "Neuromag306, only combined planar gradiometers" ,
12051184 fname = "neuromag306cmb_neighb.mat" ,
1206- source_url = _ft_neighbor_url_t .substitute (
1207- fname = "neuromag306cmb_neighb.mat"
1208- ), # noqa: E501
1185+ source_url = _ft_neighbor_url_t .substitute (fname = "neuromag306cmb_neighb.mat" ), # noqa: E501
12091186 ),
12101187 _BuiltinChannelAdjacency (
12111188 name = "ecog256" ,
12121189 description = "ECOG 256channels, average referenced" ,
12131190 fname = "ecog256_neighb.mat" ,
1214- source_url = _ft_neighbor_url_t .substitute (
1215- fname = "ecog256_neighb.mat"
1216- ), # noqa: E501
1191+ source_url = _ft_neighbor_url_t .substitute (fname = "ecog256_neighb.mat" ), # noqa: E501
12171192 ),
12181193 _BuiltinChannelAdjacency (
12191194 name = "ecog256bipolar" ,
12201195 description = "ECOG 256channels, bipolar referenced" ,
12211196 fname = "ecog256bipolar_neighb.mat" ,
1222- source_url = _ft_neighbor_url_t .substitute (
1223- fname = "ecog256bipolar_neighb.mat"
1224- ), # noqa: E501
1197+ source_url = _ft_neighbor_url_t .substitute (fname = "ecog256bipolar_neighb.mat" ), # noqa: E501
12251198 ),
12261199 _BuiltinChannelAdjacency (
12271200 name = "eeg1010_neighb" ,
@@ -1263,33 +1236,25 @@ class _BuiltinChannelAdjacency:
12631236 name = "language29ch-avg" ,
12641237 description = "MPI for Psycholinguistic: Averaged 29-channel cap" ,
12651238 fname = "language29ch-avg_neighb.mat" ,
1266- source_url = _ft_neighbor_url_t .substitute (
1267- fname = "language29ch-avg_neighb.mat"
1268- ), # noqa: E501
1239+ source_url = _ft_neighbor_url_t .substitute (fname = "language29ch-avg_neighb.mat" ), # noqa: E501
12691240 ),
12701241 _BuiltinChannelAdjacency (
12711242 name = "mpi_59_channels" ,
12721243 description = "MPI for Psycholinguistic: 59-channel cap" ,
12731244 fname = "mpi_59_channels_neighb.mat" ,
1274- source_url = _ft_neighbor_url_t .substitute (
1275- fname = "mpi_59_channels_neighb.mat"
1276- ), # noqa: E501
1245+ source_url = _ft_neighbor_url_t .substitute (fname = "mpi_59_channels_neighb.mat" ), # noqa: E501
12771246 ),
12781247 _BuiltinChannelAdjacency (
12791248 name = "yokogawa160" ,
12801249 description = "" ,
12811250 fname = "yokogawa160_neighb.mat" ,
1282- source_url = _ft_neighbor_url_t .substitute (
1283- fname = "yokogawa160_neighb.mat"
1284- ), # noqa: E501
1251+ source_url = _ft_neighbor_url_t .substitute (fname = "yokogawa160_neighb.mat" ), # noqa: E501
12851252 ),
12861253 _BuiltinChannelAdjacency (
12871254 name = "yokogawa440" ,
12881255 description = "" ,
12891256 fname = "yokogawa440_neighb.mat" ,
1290- source_url = _ft_neighbor_url_t .substitute (
1291- fname = "yokogawa440_neighb.mat"
1292- ), # noqa: E501
1257+ source_url = _ft_neighbor_url_t .substitute (fname = "yokogawa440_neighb.mat" ), # noqa: E501
12931258 ),
12941259]
12951260
0 commit comments