@@ -1581,7 +1581,7 @@ def extract_seg_ids(cell_object, target_compartment_array, targeting_mode):
15811581 found_target_groups .append (target_compartment_array [target_group ])
15821582 if segment_group_array [segment_group ]["segments" ] != []:
15831583 for segment in segment_group_array [segment_group ]["segments" ]:
1584- if not segment in segment_target_array :
1584+ if segment not in segment_target_array :
15851585 segment_target_array .append (segment )
15861586
15871587 target_segment_array [target_compartment_array [target_group ]] = (
@@ -1938,7 +1938,7 @@ def _include_neuroml2_cell(nml_doc, cell_nml2_path, cell_id, channels_also=True)
19381938
19391939 new_file = "%s/%s" % (nml_doc .id , os .path .basename (cell_nml2_path ))
19401940
1941- if not new_file in all_included_files :
1941+ if new_file not in all_included_files :
19421942 nml_doc .includes .append (neuroml .IncludeType (new_file ))
19431943 all_included_files .append (new_file )
19441944
@@ -1954,7 +1954,7 @@ def _include_neuroml2_cell(nml_doc, cell_nml2_path, cell_id, channels_also=True)
19541954
19551955 new_file = "%s/%s" % (nml_doc .id , os .path .basename (included .href ))
19561956
1957- if not new_file in all_included_files :
1957+ if new_file not in all_included_files :
19581958 nml_doc .includes .append (neuroml .IncludeType (new_file ))
19591959 all_included_files .append (new_file )
19601960
@@ -1987,7 +1987,7 @@ def _add_cell_and_channels(nml_doc, cell_nml2_rel_path, cell_id, use_prototypes=
19871987
19881988 _copy_to_dir_for_model (nml_doc , cell_nml2_path )
19891989 new_file = "%s/%s.cell.nml" % (nml_doc .id , cell_id )
1990- if not new_file in all_included_files :
1990+ if new_file not in all_included_files :
19911991 nml_doc .includes .append (neuroml .IncludeType (new_file ))
19921992 all_included_files .append (new_file )
19931993
@@ -2017,7 +2017,7 @@ def _add_cell_and_channels(nml_doc, cell_nml2_rel_path, cell_id, use_prototypes=
20172017 _copy_to_dir_for_model (nml_doc , old_loc )
20182018 new_loc = "%s/%s" % (nml_doc .id , channel_file )
20192019
2020- if not new_loc in all_included_files :
2020+ if new_loc not in all_included_files :
20212021 nml_doc .includes .append (neuroml .IncludeType (new_loc ))
20222022 all_included_files .append (new_loc )
20232023
0 commit comments