Ticket #16848: npy201.txt

File npy201.txt, 41.6 KB (added by Zach Pearson, 8 months ago)

Output of 'ruff check src --select NPY201' as of d4581f0b1

Line 
1src\bundles\add_charge\src\process_lib.py:60:6: SyntaxError: Expected a module name
2 |
358 | return heavy_synonyms.get(heavy, [])
459 |
560 | from .5p_data import heavy_data, hyd_data
6 | ^
761 | for lib in sys.argv[1:]:
862 | f = open(lib, "r")
9 |
10
11src\bundles\add_charge\src\process_lib.py:60:8: SyntaxError: Simple statements must be separated by newlines or semicolons
12 |
1358 | return heavy_synonyms.get(heavy, [])
1459 |
1560 | from .5p_data import heavy_data, hyd_data
16 | ^
1761 | for lib in sys.argv[1:]:
1862 | f = open(lib, "r")
19 |
20
21src\bundles\add_charge\src\process_lib.py:60:15: SyntaxError: Simple statements must be separated by newlines or semicolons
22 |
2358 | return heavy_synonyms.get(heavy, [])
2459 |
2560 | from .5p_data import heavy_data, hyd_data
26 | ^
2761 | for lib in sys.argv[1:]:
2862 | f = open(lib, "r")
29 |
30
31src\bundles\alphafold\src\alphafold21_predict_colab.py:78:5: SyntaxError: Expected a statement
32 |
3377 | # The -x option logs each command with a prompt in front of it.
3478 | !bash -x "{filename}" >> "{install_log}" 2>&1
35 | ^
3679 | if _exit_code != 0:
3780 | raise RuntimeError('Error running shell script %s, output in log file %s'
38 |
39
40src\bundles\alphafold\src\alphafold21_predict_colab.py:78:14: SyntaxError: Simple statements must be separated by newlines or semicolons
41 |
4277 | # The -x option logs each command with a prompt in front of it.
4378 | !bash -x "{filename}" >> "{install_log}" 2>&1
44 | ^
4579 | if _exit_code != 0:
4680 | raise RuntimeError('Error running shell script %s, output in log file %s'
47 |
48
49src\bundles\alphafold\src\alphafold21_predict_colab.py:78:46: SyntaxError: Simple statements must be separated by newlines or semicolons
50 |
5177 | # The -x option logs each command with a prompt in front of it.
5278 | !bash -x "{filename}" >> "{install_log}" 2>&1
53 | ^
5479 | if _exit_code != 0:
5580 | raise RuntimeError('Error running shell script %s, output in log file %s'
56 |
57
58src\bundles\alphafold\src\alphafold21_predict_colab.py:78:48: SyntaxError: Expected an expression
59 |
6077 | # The -x option logs each command with a prompt in front of it.
6178 | !bash -x "{filename}" >> "{install_log}" 2>&1
62 | ^
6379 | if _exit_code != 0:
6480 | raise RuntimeError('Error running shell script %s, output in log file %s'
65 |
66
67src\bundles\alphafold\src\alphafold21_predict_colab.py:634:5: SyntaxError: Expected a statement
68 |
69633 | # Make a zip file of the predictions
70634 | !cd {output_dir} ; zip -q -r ../results.zip *
71 | ^
72635 |
73636 | # Download predictions.
74 |
75
76src\bundles\alphafold\src\alphafold21_predict_colab.py:634:9: SyntaxError: Simple statements must be separated by newlines or semicolons
77 |
78633 | # Make a zip file of the predictions
79634 | !cd {output_dir} ; zip -q -r ../results.zip *
80 | ^
81635 |
82636 | # Download predictions.
83 |
84
85src\bundles\alphafold\src\alphafold21_predict_colab.py:634:35: SyntaxError: Expected an identifier
86 |
87633 | # Make a zip file of the predictions
88634 | !cd {output_dir} ; zip -q -r ../results.zip *
89 | ^
90635 |
91636 | # Download predictions.
92 |
93
94src\bundles\alphafold\src\alphafold21_predict_colab.py:634:36: SyntaxError: Expected an identifier
95 |
96633 | # Make a zip file of the predictions
97634 | !cd {output_dir} ; zip -q -r ../results.zip *
98 | ^
99635 |
100636 | # Download predictions.
101 |
102
103src\bundles\alphafold\src\alphafold21_predict_colab.py:634:50: SyntaxError: Expected an expression
104 |
105633 | # Make a zip file of the predictions
106634 | !cd {output_dir} ; zip -q -r ../results.zip *
107 | ^
108635 |
109636 | # Download predictions.
110637 | from google.colab import files
111 |
112
113src\bundles\alphafold\src\alphafold22_predict_colab.py:80:5: SyntaxError: Expected a statement
114 |
11579 | # The -x option logs each command with a prompt in front of it.
11680 | !bash -x "{filename}" >> "{install_log}" 2>&1
117 | ^
11881 | if _exit_code != 0:
11982 | raise RuntimeError('Error running shell script %s, output in log file %s'
120 |
121
122src\bundles\alphafold\src\alphafold22_predict_colab.py:80:14: SyntaxError: Simple statements must be separated by newlines or semicolons
123 |
12479 | # The -x option logs each command with a prompt in front of it.
12580 | !bash -x "{filename}" >> "{install_log}" 2>&1
126 | ^
12781 | if _exit_code != 0:
12882 | raise RuntimeError('Error running shell script %s, output in log file %s'
129 |
130
131src\bundles\alphafold\src\alphafold22_predict_colab.py:80:46: SyntaxError: Simple statements must be separated by newlines or semicolons
132 |
13379 | # The -x option logs each command with a prompt in front of it.
13480 | !bash -x "{filename}" >> "{install_log}" 2>&1
135 | ^
13681 | if _exit_code != 0:
13782 | raise RuntimeError('Error running shell script %s, output in log file %s'
138 |
139
140src\bundles\alphafold\src\alphafold22_predict_colab.py:80:48: SyntaxError: Expected an expression
141 |
14279 | # The -x option logs each command with a prompt in front of it.
14380 | !bash -x "{filename}" >> "{install_log}" 2>&1
144 | ^
14581 | if _exit_code != 0:
14682 | raise RuntimeError('Error running shell script %s, output in log file %s'
147 |
148
149src\bundles\alphafold\src\alphafold22_predict_colab.py:679:5: SyntaxError: Expected a statement
150 |
151678 | # Make a zip file of the predictions
152679 | !cd {output_dir} ; zip -q -r ../results.zip *
153 | ^
154680 |
155681 | # Download predictions.
156 |
157
158src\bundles\alphafold\src\alphafold22_predict_colab.py:679:9: SyntaxError: Simple statements must be separated by newlines or semicolons
159 |
160678 | # Make a zip file of the predictions
161679 | !cd {output_dir} ; zip -q -r ../results.zip *
162 | ^
163680 |
164681 | # Download predictions.
165 |
166
167src\bundles\alphafold\src\alphafold22_predict_colab.py:679:35: SyntaxError: Expected an identifier
168 |
169678 | # Make a zip file of the predictions
170679 | !cd {output_dir} ; zip -q -r ../results.zip *
171 | ^
172680 |
173681 | # Download predictions.
174 |
175
176src\bundles\alphafold\src\alphafold22_predict_colab.py:679:36: SyntaxError: Expected an identifier
177 |
178678 | # Make a zip file of the predictions
179679 | !cd {output_dir} ; zip -q -r ../results.zip *
180 | ^
181680 |
182681 | # Download predictions.
183 |
184
185src\bundles\alphafold\src\alphafold22_predict_colab.py:679:50: SyntaxError: Expected an expression
186 |
187678 | # Make a zip file of the predictions
188679 | !cd {output_dir} ; zip -q -r ../results.zip *
189 | ^
190680 |
191681 | # Download predictions.
192682 | from google.colab import files
193 |
194
195src\bundles\alphafold\src\alphafold_predict_colab.py:76:5: SyntaxError: Expected a statement
196 |
19775 | # The -x option logs each command with a prompt in front of it.
19876 | !bash -x "{filename}" >> "{install_log}" 2>&1
199 | ^
20077 |
20178 | def install_hmmer(install_log = 'install_log.txt'):
202 |
203
204src\bundles\alphafold\src\alphafold_predict_colab.py:76:14: SyntaxError: Simple statements must be separated by newlines or semicolons
205 |
20675 | # The -x option logs each command with a prompt in front of it.
20776 | !bash -x "{filename}" >> "{install_log}" 2>&1
208 | ^
20977 |
21078 | def install_hmmer(install_log = 'install_log.txt'):
211 |
212
213src\bundles\alphafold\src\alphafold_predict_colab.py:76:46: SyntaxError: Simple statements must be separated by newlines or semicolons
214 |
21575 | # The -x option logs each command with a prompt in front of it.
21676 | !bash -x "{filename}" >> "{install_log}" 2>&1
217 | ^
21877 |
21978 | def install_hmmer(install_log = 'install_log.txt'):
220 |
221
222src\bundles\alphafold\src\alphafold_predict_colab.py:76:48: SyntaxError: Expected an expression
223 |
22475 | # The -x option logs each command with a prompt in front of it.
22576 | !bash -x "{filename}" >> "{install_log}" 2>&1
226 | ^
22777 |
22878 | def install_hmmer(install_log = 'install_log.txt'):
229 |
230
231src\bundles\alphafold\src\alphafold_predict_colab.py:567:5: SyntaxError: Expected a statement
232 |
233566 | # Make a zip file of the predictions
234567 | !cd {output_dir} ; zip -q -r ../results.zip *
235 | ^
236568 |
237569 | # Download predictions.
238 |
239
240src\bundles\alphafold\src\alphafold_predict_colab.py:567:9: SyntaxError: Simple statements must be separated by newlines or semicolons
241 |
242566 | # Make a zip file of the predictions
243567 | !cd {output_dir} ; zip -q -r ../results.zip *
244 | ^
245568 |
246569 | # Download predictions.
247 |
248
249src\bundles\alphafold\src\alphafold_predict_colab.py:567:35: SyntaxError: Expected an identifier
250 |
251566 | # Make a zip file of the predictions
252567 | !cd {output_dir} ; zip -q -r ../results.zip *
253 | ^
254568 |
255569 | # Download predictions.
256 |
257
258src\bundles\alphafold\src\alphafold_predict_colab.py:567:36: SyntaxError: Expected an identifier
259 |
260566 | # Make a zip file of the predictions
261567 | !cd {output_dir} ; zip -q -r ../results.zip *
262 | ^
263568 |
264569 | # Download predictions.
265 |
266
267src\bundles\alphafold\src\alphafold_predict_colab.py:567:50: SyntaxError: Expected an expression
268 |
269566 | # Make a zip file of the predictions
270567 | !cd {output_dir} ; zip -q -r ../results.zip *
271 | ^
272568 |
273569 | # Download predictions.
274570 | from google.colab import files
275 |
276
277src\bundles\alphafold\src\colabfold_predict.py:168:3: SyntaxError: Expected a statement
278 |
279167 | relax = 'relaxed' if energy_minimize else 'unrelaxed'
280168 | !cp -p *_{relax}_rank_001_*.pdb best_model.pdb
281 | ^
282169 | !cp -p *_scores_rank_001_*.json best_model_pae.json
283 |
284
285src\bundles\alphafold\src\colabfold_predict.py:168:12: SyntaxError: Simple statements must be separated by newlines or semicolons
286 |
287167 | relax = 'relaxed' if energy_minimize else 'unrelaxed'
288168 | !cp -p *_{relax}_rank_001_*.pdb best_model.pdb
289 | ^
290169 | !cp -p *_scores_rank_001_*.json best_model_pae.json
291 |
292
293src\bundles\alphafold\src\colabfold_predict.py:168:19: SyntaxError: Simple statements must be separated by newlines or semicolons
294 |
295167 | relax = 'relaxed' if energy_minimize else 'unrelaxed'
296168 | !cp -p *_{relax}_rank_001_*.pdb best_model.pdb
297 | ^
298169 | !cp -p *_scores_rank_001_*.json best_model_pae.json
299 |
300
301src\bundles\alphafold\src\colabfold_predict.py:168:30: SyntaxError: Expected an expression
302 |
303167 | relax = 'relaxed' if energy_minimize else 'unrelaxed'
304168 | !cp -p *_{relax}_rank_001_*.pdb best_model.pdb
305 | ^
306169 | !cp -p *_scores_rank_001_*.json best_model_pae.json
307 |
308
309src\bundles\alphafold\src\colabfold_predict.py:168:35: SyntaxError: Simple statements must be separated by newlines or semicolons
310 |
311167 | relax = 'relaxed' if energy_minimize else 'unrelaxed'
312168 | !cp -p *_{relax}_rank_001_*.pdb best_model.pdb
313 | ^
314169 | !cp -p *_scores_rank_001_*.json best_model_pae.json
315 |
316
317src\bundles\alphafold\src\colabfold_predict.py:169:3: SyntaxError: Expected a statement
318 |
319167 | relax = 'relaxed' if energy_minimize else 'unrelaxed'
320168 | !cp -p *_{relax}_rank_001_*.pdb best_model.pdb
321169 | !cp -p *_scores_rank_001_*.json best_model_pae.json
322 | ^
323170 |
324171 | # Make a zip file of the predictions
325 |
326
327src\bundles\alphafold\src\colabfold_predict.py:169:29: SyntaxError: Expected an expression
328 |
329167 | relax = 'relaxed' if energy_minimize else 'unrelaxed'
330168 | !cp -p *_{relax}_rank_001_*.pdb best_model.pdb
331169 | !cp -p *_scores_rank_001_*.json best_model_pae.json
332 | ^
333170 |
334171 | # Make a zip file of the predictions
335 |
336
337src\bundles\alphafold\src\colabfold_predict.py:169:35: SyntaxError: Simple statements must be separated by newlines or semicolons
338 |
339167 | relax = 'relaxed' if energy_minimize else 'unrelaxed'
340168 | !cp -p *_{relax}_rank_001_*.pdb best_model.pdb
341169 | !cp -p *_scores_rank_001_*.json best_model_pae.json
342 | ^
343170 |
344171 | # Make a zip file of the predictions
345 |
346
347src\bundles\alphafold\src\colabfold_predict.py:172:3: SyntaxError: Expected a statement
348 |
349171 | # Make a zip file of the predictions
350172 | !zip -q -r results.zip query.fasta *.csv *.json *.a3m *.pdb cite.bibtex *.png *log.txt
351 | ^
352173 |
353174 | # Download predictions.
354 |
355
356src\bundles\alphafold\src\colabfold_predict.py:172:14: SyntaxError: Simple statements must be separated by newlines or semicolons
357 |
358171 | # Make a zip file of the predictions
359172 | !zip -q -r results.zip query.fasta *.csv *.json *.a3m *.pdb cite.bibtex *.png *log.txt
360 | ^
361173 |
362174 | # Download predictions.
363 |
364
365src\bundles\alphafold\src\colabfold_predict.py:172:26: SyntaxError: Simple statements must be separated by newlines or semicolons
366 |
367171 | # Make a zip file of the predictions
368172 | !zip -q -r results.zip query.fasta *.csv *.json *.a3m *.pdb cite.bibtex *.png *log.txt
369 | ^
370173 |
371174 | # Download predictions.
372 |
373
374src\bundles\alphafold\src\colabfold_predict.py:172:39: SyntaxError: Expected an expression
375 |
376171 | # Make a zip file of the predictions
377172 | !zip -q -r results.zip query.fasta *.csv *.json *.a3m *.pdb cite.bibtex *.png *log.txt
378 | ^
379173 |
380174 | # Download predictions.
381 |
382
383src\bundles\alphafold\src\colabfold_predict.py:172:45: SyntaxError: Expected an expression
384 |
385171 | # Make a zip file of the predictions
386172 | !zip -q -r results.zip query.fasta *.csv *.json *.a3m *.pdb cite.bibtex *.png *log.txt
387 | ^
388173 |
389174 | # Download predictions.
390 |
391
392src\bundles\alphafold\src\colabfold_predict.py:172:52: SyntaxError: Expected an expression
393 |
394171 | # Make a zip file of the predictions
395172 | !zip -q -r results.zip query.fasta *.csv *.json *.a3m *.pdb cite.bibtex *.png *log.txt
396 | ^
397173 |
398174 | # Download predictions.
399 |
400
401src\bundles\alphafold\src\colabfold_predict.py:172:58: SyntaxError: Expected an expression
402 |
403171 | # Make a zip file of the predictions
404172 | !zip -q -r results.zip query.fasta *.csv *.json *.a3m *.pdb cite.bibtex *.png *log.txt
405 | ^
406173 |
407174 | # Download predictions.
408 |
409
410src\bundles\alphafold\src\colabfold_predict.py:172:63: SyntaxError: Simple statements must be separated by newlines or semicolons
411 |
412171 | # Make a zip file of the predictions
413172 | !zip -q -r results.zip query.fasta *.csv *.json *.a3m *.pdb cite.bibtex *.png *log.txt
414 | ^
415173 |
416174 | # Download predictions.
417 |
418
419src\bundles\alphafold\src\colabfold_predict.py:172:76: SyntaxError: Expected an expression
420 |
421171 | # Make a zip file of the predictions
422172 | !zip -q -r results.zip query.fasta *.csv *.json *.a3m *.pdb cite.bibtex *.png *log.txt
423 | ^
424173 |
425174 | # Download predictions.
426 |
427
428src\bundles\alphafold\src\colabfold_predict.py:195:20: SyntaxError: Expected an expression
429 |
430193 | #
431194 | def report_gpu_type():
432195 | gpu_name_lines = !nvidia-smi --format=csv,noheader --query-gpu=name
433 | ^
434196 | gpu_name = gpu_name_lines[0]
435197 | print(f'Using {gpu_name} graphics processor')
436 |
437
438src\bundles\alphafold\src\colabfold_predict.py:195:21: SyntaxError: Invalid assignment target
439 |
440193 | #
441194 | def report_gpu_type():
442195 | gpu_name_lines = !nvidia-smi --format=csv,noheader --query-gpu=name
443 | ^
444196 | gpu_name = gpu_name_lines[0]
445197 | print(f'Using {gpu_name} graphics processor')
446 |
447
448src\bundles\alphafold\src\colabfold_predict.py:195:45: SyntaxError: Invalid assignment target
449 |
450193 | #
451194 | def report_gpu_type():
452195 | gpu_name_lines = !nvidia-smi --format=csv,noheader --query-gpu=name
453 | ^
454196 | gpu_name = gpu_name_lines[0]
455197 | print(f'Using {gpu_name} graphics processor')
456 |
457
458src\bundles\alphafold\src\colabfold_predict.py:222:3: SyntaxError: Expected a statement
459 |
460220 | occur if different sequences are run when computing MSA.
461221 | '''
462222 | !rm -rf *.pdb *.json *_ *_env *.zip *.csv *.png *.a3m *.fasta
463 | ^
464223 |
465224 | # ================================================================================================
466 |
467
468src\bundles\alphafold\src\colabfold_predict.py:222:12: SyntaxError: Expected an expression
469 |
470220 | occur if different sequences are run when computing MSA.
471221 | '''
472222 | !rm -rf *.pdb *.json *_ *_env *.zip *.csv *.png *.a3m *.fasta
473 | ^
474223 |
475224 | # ================================================================================================
476 |
477
478src\bundles\alphafold\src\colabfold_predict.py:222:18: SyntaxError: Expected an expression
479 |
480220 | occur if different sequences are run when computing MSA.
481221 | '''
482222 | !rm -rf *.pdb *.json *_ *_env *.zip *.csv *.png *.a3m *.fasta
483 | ^
484223 |
485224 | # ================================================================================================
486 |
487
488src\bundles\alphafold\src\colabfold_predict.py:222:34: SyntaxError: Expected an expression
489 |
490220 | occur if different sequences are run when computing MSA.
491221 | '''
492222 | !rm -rf *.pdb *.json *_ *_env *.zip *.csv *.png *.a3m *.fasta
493 | ^
494223 |
495224 | # ================================================================================================
496 |
497
498src\bundles\alphafold\src\colabfold_predict.py:222:40: SyntaxError: Expected an expression
499 |
500220 | occur if different sequences are run when computing MSA.
501221 | '''
502222 | !rm -rf *.pdb *.json *_ *_env *.zip *.csv *.png *.a3m *.fasta
503 | ^
504223 |
505224 | # ================================================================================================
506 |
507
508src\bundles\alphafold\src\colabfold_predict.py:222:46: SyntaxError: Expected an expression
509 |
510220 | occur if different sequences are run when computing MSA.
511221 | '''
512222 | !rm -rf *.pdb *.json *_ *_env *.zip *.csv *.png *.a3m *.fasta
513 | ^
514223 |
515224 | # ================================================================================================
516 |
517
518src\bundles\alphafold\src\colabfold_predict.py:222:52: SyntaxError: Expected an expression
519 |
520220 | occur if different sequences are run when computing MSA.
521221 | '''
522222 | !rm -rf *.pdb *.json *_ *_env *.zip *.csv *.png *.a3m *.fasta
523 | ^
524223 |
525224 | # ================================================================================================
526 |
527
528src\bundles\alphafold\src\colabfold_predict.py:222:58: SyntaxError: Expected an expression
529 |
530220 | occur if different sequences are run when computing MSA.
531221 | '''
532222 | !rm -rf *.pdb *.json *_ *_env *.zip *.csv *.png *.a3m *.fasta
533 | ^
534223 |
535224 | # ================================================================================================
536 |
537
538src\bundles\alphafold\src\colabfold_predict.py:305:3: SyntaxError: Expected a statement
539 |
540304 | # The -x option logs each command with a prompt in front of it.
541305 | !bash -x "{filename}" >> "{install_log}" 2>&1
542 | ^
543306 | if _exit_code != 0:
544307 | raise RuntimeError('Error running shell script %s, output in log file %s'
545 |
546
547src\bundles\alphafold\src\colabfold_predict.py:305:12: SyntaxError: Simple statements must be separated by newlines or semicolons
548 |
549304 | # The -x option logs each command with a prompt in front of it.
550305 | !bash -x "{filename}" >> "{install_log}" 2>&1
551 | ^
552306 | if _exit_code != 0:
553307 | raise RuntimeError('Error running shell script %s, output in log file %s'
554 |
555
556src\bundles\alphafold\src\colabfold_predict.py:305:44: SyntaxError: Simple statements must be separated by newlines or semicolons
557 |
558304 | # The -x option logs each command with a prompt in front of it.
559305 | !bash -x "{filename}" >> "{install_log}" 2>&1
560 | ^
561306 | if _exit_code != 0:
562307 | raise RuntimeError('Error running shell script %s, output in log file %s'
563 |
564
565src\bundles\alphafold\src\colabfold_predict.py:305:46: SyntaxError: Expected an expression
566 |
567304 | # The -x option logs each command with a prompt in front of it.
568305 | !bash -x "{filename}" >> "{install_log}" 2>&1
569 | ^
570306 | if _exit_code != 0:
571307 | raise RuntimeError('Error running shell script %s, output in log file %s'
572 |
573
574src\bundles\alphafold\src\colabfold_predict_test.py:168:3: SyntaxError: Expected a statement
575 |
576167 | relax = 'relaxed' if energy_minimize else 'unrelaxed'
577168 | !cp -p *_{relax}_rank_001_*.pdb best_model.pdb
578 | ^
579169 | !cp -p *_scores_rank_001_*.json best_model_pae.json
580 |
581
582src\bundles\alphafold\src\colabfold_predict_test.py:168:12: SyntaxError: Simple statements must be separated by newlines or semicolons
583 |
584167 | relax = 'relaxed' if energy_minimize else 'unrelaxed'
585168 | !cp -p *_{relax}_rank_001_*.pdb best_model.pdb
586 | ^
587169 | !cp -p *_scores_rank_001_*.json best_model_pae.json
588 |
589
590src\bundles\alphafold\src\colabfold_predict_test.py:168:19: SyntaxError: Simple statements must be separated by newlines or semicolons
591 |
592167 | relax = 'relaxed' if energy_minimize else 'unrelaxed'
593168 | !cp -p *_{relax}_rank_001_*.pdb best_model.pdb
594 | ^
595169 | !cp -p *_scores_rank_001_*.json best_model_pae.json
596 |
597
598src\bundles\alphafold\src\colabfold_predict_test.py:168:30: SyntaxError: Expected an expression
599 |
600167 | relax = 'relaxed' if energy_minimize else 'unrelaxed'
601168 | !cp -p *_{relax}_rank_001_*.pdb best_model.pdb
602 | ^
603169 | !cp -p *_scores_rank_001_*.json best_model_pae.json
604 |
605
606src\bundles\alphafold\src\colabfold_predict_test.py:168:35: SyntaxError: Simple statements must be separated by newlines or semicolons
607 |
608167 | relax = 'relaxed' if energy_minimize else 'unrelaxed'
609168 | !cp -p *_{relax}_rank_001_*.pdb best_model.pdb
610 | ^
611169 | !cp -p *_scores_rank_001_*.json best_model_pae.json
612 |
613
614src\bundles\alphafold\src\colabfold_predict_test.py:169:3: SyntaxError: Expected a statement
615 |
616167 | relax = 'relaxed' if energy_minimize else 'unrelaxed'
617168 | !cp -p *_{relax}_rank_001_*.pdb best_model.pdb
618169 | !cp -p *_scores_rank_001_*.json best_model_pae.json
619 | ^
620170 |
621171 | # Make a zip file of the predictions
622 |
623
624src\bundles\alphafold\src\colabfold_predict_test.py:169:29: SyntaxError: Expected an expression
625 |
626167 | relax = 'relaxed' if energy_minimize else 'unrelaxed'
627168 | !cp -p *_{relax}_rank_001_*.pdb best_model.pdb
628169 | !cp -p *_scores_rank_001_*.json best_model_pae.json
629 | ^
630170 |
631171 | # Make a zip file of the predictions
632 |
633
634src\bundles\alphafold\src\colabfold_predict_test.py:169:35: SyntaxError: Simple statements must be separated by newlines or semicolons
635 |
636167 | relax = 'relaxed' if energy_minimize else 'unrelaxed'
637168 | !cp -p *_{relax}_rank_001_*.pdb best_model.pdb
638169 | !cp -p *_scores_rank_001_*.json best_model_pae.json
639 | ^
640170 |
641171 | # Make a zip file of the predictions
642 |
643
644src\bundles\alphafold\src\colabfold_predict_test.py:172:3: SyntaxError: Expected a statement
645 |
646171 | # Make a zip file of the predictions
647172 | !zip -q -r results.zip query.fasta *.csv *.json *.a3m *.pdb cite.bibtex *.png *log.txt
648 | ^
649173 |
650174 | # Download predictions.
651 |
652
653src\bundles\alphafold\src\colabfold_predict_test.py:172:14: SyntaxError: Simple statements must be separated by newlines or semicolons
654 |
655171 | # Make a zip file of the predictions
656172 | !zip -q -r results.zip query.fasta *.csv *.json *.a3m *.pdb cite.bibtex *.png *log.txt
657 | ^
658173 |
659174 | # Download predictions.
660 |
661
662src\bundles\alphafold\src\colabfold_predict_test.py:172:26: SyntaxError: Simple statements must be separated by newlines or semicolons
663 |
664171 | # Make a zip file of the predictions
665172 | !zip -q -r results.zip query.fasta *.csv *.json *.a3m *.pdb cite.bibtex *.png *log.txt
666 | ^
667173 |
668174 | # Download predictions.
669 |
670
671src\bundles\alphafold\src\colabfold_predict_test.py:172:39: SyntaxError: Expected an expression
672 |
673171 | # Make a zip file of the predictions
674172 | !zip -q -r results.zip query.fasta *.csv *.json *.a3m *.pdb cite.bibtex *.png *log.txt
675 | ^
676173 |
677174 | # Download predictions.
678 |
679
680src\bundles\alphafold\src\colabfold_predict_test.py:172:45: SyntaxError: Expected an expression
681 |
682171 | # Make a zip file of the predictions
683172 | !zip -q -r results.zip query.fasta *.csv *.json *.a3m *.pdb cite.bibtex *.png *log.txt
684 | ^
685173 |
686174 | # Download predictions.
687 |
688
689src\bundles\alphafold\src\colabfold_predict_test.py:172:52: SyntaxError: Expected an expression
690 |
691171 | # Make a zip file of the predictions
692172 | !zip -q -r results.zip query.fasta *.csv *.json *.a3m *.pdb cite.bibtex *.png *log.txt
693 | ^
694173 |
695174 | # Download predictions.
696 |
697
698src\bundles\alphafold\src\colabfold_predict_test.py:172:58: SyntaxError: Expected an expression
699 |
700171 | # Make a zip file of the predictions
701172 | !zip -q -r results.zip query.fasta *.csv *.json *.a3m *.pdb cite.bibtex *.png *log.txt
702 | ^
703173 |
704174 | # Download predictions.
705 |
706
707src\bundles\alphafold\src\colabfold_predict_test.py:172:63: SyntaxError: Simple statements must be separated by newlines or semicolons
708 |
709171 | # Make a zip file of the predictions
710172 | !zip -q -r results.zip query.fasta *.csv *.json *.a3m *.pdb cite.bibtex *.png *log.txt
711 | ^
712173 |
713174 | # Download predictions.
714 |
715
716src\bundles\alphafold\src\colabfold_predict_test.py:172:76: SyntaxError: Expected an expression
717 |
718171 | # Make a zip file of the predictions
719172 | !zip -q -r results.zip query.fasta *.csv *.json *.a3m *.pdb cite.bibtex *.png *log.txt
720 | ^
721173 |
722174 | # Download predictions.
723 |
724
725src\bundles\alphafold\src\colabfold_predict_test.py:195:20: SyntaxError: Expected an expression
726 |
727193 | #
728194 | def report_gpu_type():
729195 | gpu_name_lines = !nvidia-smi --format=csv,noheader --query-gpu=name
730 | ^
731196 | gpu_name = gpu_name_lines[0]
732197 | print(f'Using {gpu_name} graphics processor')
733 |
734
735src\bundles\alphafold\src\colabfold_predict_test.py:195:21: SyntaxError: Invalid assignment target
736 |
737193 | #
738194 | def report_gpu_type():
739195 | gpu_name_lines = !nvidia-smi --format=csv,noheader --query-gpu=name
740 | ^
741196 | gpu_name = gpu_name_lines[0]
742197 | print(f'Using {gpu_name} graphics processor')
743 |
744
745src\bundles\alphafold\src\colabfold_predict_test.py:195:45: SyntaxError: Invalid assignment target
746 |
747193 | #
748194 | def report_gpu_type():
749195 | gpu_name_lines = !nvidia-smi --format=csv,noheader --query-gpu=name
750 | ^
751196 | gpu_name = gpu_name_lines[0]
752197 | print(f'Using {gpu_name} graphics processor')
753 |
754
755src\bundles\alphafold\src\colabfold_predict_test.py:222:3: SyntaxError: Expected a statement
756 |
757220 | occur if different sequences are run when computing MSA.
758221 | '''
759222 | !rm -rf *.pdb *.json *_ *_env *.zip *.csv *.png *.a3m *.fasta
760 | ^
761223 |
762224 | # ================================================================================================
763 |
764
765src\bundles\alphafold\src\colabfold_predict_test.py:222:12: SyntaxError: Expected an expression
766 |
767220 | occur if different sequences are run when computing MSA.
768221 | '''
769222 | !rm -rf *.pdb *.json *_ *_env *.zip *.csv *.png *.a3m *.fasta
770 | ^
771223 |
772224 | # ================================================================================================
773 |
774
775src\bundles\alphafold\src\colabfold_predict_test.py:222:18: SyntaxError: Expected an expression
776 |
777220 | occur if different sequences are run when computing MSA.
778221 | '''
779222 | !rm -rf *.pdb *.json *_ *_env *.zip *.csv *.png *.a3m *.fasta
780 | ^
781223 |
782224 | # ================================================================================================
783 |
784
785src\bundles\alphafold\src\colabfold_predict_test.py:222:34: SyntaxError: Expected an expression
786 |
787220 | occur if different sequences are run when computing MSA.
788221 | '''
789222 | !rm -rf *.pdb *.json *_ *_env *.zip *.csv *.png *.a3m *.fasta
790 | ^
791223 |
792224 | # ================================================================================================
793 |
794
795src\bundles\alphafold\src\colabfold_predict_test.py:222:40: SyntaxError: Expected an expression
796 |
797220 | occur if different sequences are run when computing MSA.
798221 | '''
799222 | !rm -rf *.pdb *.json *_ *_env *.zip *.csv *.png *.a3m *.fasta
800 | ^
801223 |
802224 | # ================================================================================================
803 |
804
805src\bundles\alphafold\src\colabfold_predict_test.py:222:46: SyntaxError: Expected an expression
806 |
807220 | occur if different sequences are run when computing MSA.
808221 | '''
809222 | !rm -rf *.pdb *.json *_ *_env *.zip *.csv *.png *.a3m *.fasta
810 | ^
811223 |
812224 | # ================================================================================================
813 |
814
815src\bundles\alphafold\src\colabfold_predict_test.py:222:52: SyntaxError: Expected an expression
816 |
817220 | occur if different sequences are run when computing MSA.
818221 | '''
819222 | !rm -rf *.pdb *.json *_ *_env *.zip *.csv *.png *.a3m *.fasta
820 | ^
821223 |
822224 | # ================================================================================================
823 |
824
825src\bundles\alphafold\src\colabfold_predict_test.py:222:58: SyntaxError: Expected an expression
826 |
827220 | occur if different sequences are run when computing MSA.
828221 | '''
829222 | !rm -rf *.pdb *.json *_ *_env *.zip *.csv *.png *.a3m *.fasta
830 | ^
831223 |
832224 | # ================================================================================================
833 |
834
835src\bundles\alphafold\src\colabfold_predict_test.py:305:3: SyntaxError: Expected a statement
836 |
837304 | # The -x option logs each command with a prompt in front of it.
838305 | !bash -x "{filename}" >> "{install_log}" 2>&1
839 | ^
840306 | if _exit_code != 0:
841307 | raise RuntimeError('Error running shell script %s, output in log file %s'
842 |
843
844src\bundles\alphafold\src\colabfold_predict_test.py:305:12: SyntaxError: Simple statements must be separated by newlines or semicolons
845 |
846304 | # The -x option logs each command with a prompt in front of it.
847305 | !bash -x "{filename}" >> "{install_log}" 2>&1
848 | ^
849306 | if _exit_code != 0:
850307 | raise RuntimeError('Error running shell script %s, output in log file %s'
851 |
852
853src\bundles\alphafold\src\colabfold_predict_test.py:305:44: SyntaxError: Simple statements must be separated by newlines or semicolons
854 |
855304 | # The -x option logs each command with a prompt in front of it.
856305 | !bash -x "{filename}" >> "{install_log}" 2>&1
857 | ^
858306 | if _exit_code != 0:
859307 | raise RuntimeError('Error running shell script %s, output in log file %s'
860 |
861
862src\bundles\alphafold\src\colabfold_predict_test.py:305:46: SyntaxError: Expected an expression
863 |
864304 | # The -x option logs each command with a prompt in front of it.
865305 | !bash -x "{filename}" >> "{install_log}" 2>&1
866 | ^
867306 | if _exit_code != 0:
868307 | raise RuntimeError('Error running shell script %s, output in log file %s'
869 |
870
871src\bundles\atomic\src\structure.py:865:20: NPY201 [*] `np.in1d` will be removed in NumPy 2.0. Use `numpy.isin` instead.
872 |
873863 | from numpy import unique, in1d
874864 | sel_rids = unique(rids[asel])
875865 | ares = in1d(rids, sel_rids)
876 | ^^^^ NPY201
877866 | if ares.sum() > na:
878867 | # Promote to entire residues
879 |
880 = help: Replace with `numpy.isin`
881
882src\bundles\atomic\src\structure.py:873:23: NPY201 [*] `np.in1d` will be removed in NumPy 2.0. Use `numpy.isin` instead.
883 |
884871 | ssids = r.secondary_structure_ids
885872 | sel_ssids = unique(ssids[asel])
886873 | ass = in1d(ssids, sel_ssids)
887 | ^^^^ NPY201
888874 | if ass.sum() > na:
889875 | # Promote to secondary structure
890 |
891 = help: Replace with `numpy.isin`
892
893src\bundles\atomic\src\structure.py:887:30: NPY201 [*] `np.in1d` will be removed in NumPy 2.0. Use `numpy.isin` instead.
894 |
895885 | cids = array(r.chain_ids)
896886 | sel_cids = unique(cids[asel])
897887 | ac = in1d(cids, sel_cids)
898 | ^^^^ NPY201
899888 | if ac.sum() > na:
900889 | # Promote to entire chains
901 |
902 = help: Replace with `numpy.isin`
903
904src\bundles\atomic\src\structure.py:1038:20: NPY201 [*] `np.in1d` will be removed in NumPy 2.0. Use `numpy.isin` instead.
905 |
9061036 | from numpy import in1d, invert
9071037 | matched_chain_ids = atoms.filter(a).unique_chain_ids
9081038 | mask = in1d(atoms.chain_ids, matched_chain_ids)
909 | ^^^^ NPY201
9101039 | if '<' in operator:
9111040 | expand_by = atoms.filter(mask)
912 |
913 = help: Replace with `numpy.isin`
914
915src\bundles\map_data\src\arrays.py:256:12: NPY201 [*] `np.product` will be removed in NumPy 2.0. Use `numpy.prod` instead.
916 |
917254 | for k in range(size[2]):
918255 | indices[k,:,:,2] = k
919256 | volume = product(size)
920 | ^^^^^^^ NPY201
921257 | indices = reshape(indices, (volume, 3))
922258 | return indices
923 |
924 = help: Replace with `numpy.prod`
925
926src\bundles\map_data\src\readarray.py:233:13: NPY201 [*] `np.product` will be removed in NumPy 2.0. Use `numpy.prod` instead.
927 |
928231 | vtype = dtype(value_type)
929232 | tsize = vtype.itemsize
930233 | bytes = product(size, dtype=float64)*float(tsize)
931 | ^^^^^^^ NPY201
932234 | mbytes = bytes / 2**20
933235 | sz = ','.join(['%d' % s for s in size])
934 |
935 = help: Replace with `numpy.prod`
936
937src\bundles\md_crds\gromacs\xdrfile-1.1.4\src\python\sample.py:38:9: SyntaxError: Simple statements must be separated by newlines or semicolons
938 |
93937 | if len(sys.argv)!=2:
94038 | print "Missing file argument\nUsage: sample.py FILE"
941 | ^
94239 | sys.exit()
943 |
944
945src\bundles\md_crds\gromacs\xdrfile-1.1.4\src\python\sample.py:44:11: SyntaxError: Simple statements must be separated by newlines or semicolons
946 |
94742 | x=xdrfile(sys.argv[1])
94843 | for f in x: #iterates frames
94944 | print "%8s %8s %8s %8s Step: %8d "%("Atom","X","Y","Z",f.step) #print header
950 | ^
95145 | for i,a in enumerate(f.x): #iterate atoms
95246 | print "%8d %8.1f %8.1f %8.1f"%(i+1,a[0],a[1],a[2]) #print atom number, x, y, z
953 |
954
955src\bundles\md_crds\gromacs\xdrfile-1.1.4\src\python\sample.py:46:13: SyntaxError: Simple statements must be separated by newlines or semicolons
956 |
95744 | print "%8s %8s %8s %8s Step: %8d "%("Atom","X","Y","Z",f.step) #print header
95845 | for i,a in enumerate(f.x): #iterate atoms
95946 | print "%8d %8.1f %8.1f %8.1f"%(i+1,a[0],a[1],a[2]) #print atom number, x, y, z
960 | ^
961 |
962
963src\bundles\md_crds\gromacs\xdrfile-1.1.4\src\python\xdrfile_test.py:49:35: SyntaxError: Simple statements must be separated by newlines or semicolons
964 |
96547 | def test(fn):
96648 | x=xdrfile(fn)
96749 | if x.natoms != natoms1: print "natoms != natoms1",x.natoms,natoms1
968 | ^
96950 | for k,f in enumerate(x):
97051 | if f.step != step1+k: print "incorrect step",f.step,step1+k,k
971 |
972
973src\bundles\md_crds\gromacs\xdrfile-1.1.4\src\python\xdrfile_test.py:51:37: SyntaxError: Simple statements must be separated by newlines or semicolons
974 |
97549 | if x.natoms != natoms1: print "natoms != natoms1",x.natoms,natoms1
97650 | for k,f in enumerate(x):
97751 | if f.step != step1+k: print "incorrect step",f.step,step1+k,k
978 | ^
97952 | if fabs(f.time-time1-k) > toler: print "incorrect time",f.time,time1+k
98053 | if not x.mode&mTrr and fabs(f.prec-prec1) > toler: print "incorrect precision",f.prec,prec1
981 |
982
983src\bundles\md_crds\gromacs\xdrfile-1.1.4\src\python\xdrfile_test.py:52:48: SyntaxError: Simple statements must be separated by newlines or semicolons
984 |
98550 | for k,f in enumerate(x):
98651 | if f.step != step1+k: print "incorrect step",f.step,step1+k,k
98752 | if fabs(f.time-time1-k) > toler: print "incorrect time",f.time,time1+k
988 | ^
98953 | if not x.mode&mTrr and fabs(f.prec-prec1) > toler: print "incorrect precision",f.prec,prec1
99054 | if x.mode&mTrr and fabs(f.lam-lam1) > toler: print "incorrect lambda",f.lam,lam1
991 |
992
993src\bundles\md_crds\gromacs\xdrfile-1.1.4\src\python\xdrfile_test.py:53:66: SyntaxError: Simple statements must be separated by newlines or semicolons
994 |
99551 | if f.step != step1+k: print "incorrect step",f.step,step1+k,k
99652 | if fabs(f.time-time1-k) > toler: print "incorrect time",f.time,time1+k
99753 | if not x.mode&mTrr and fabs(f.prec-prec1) > toler: print "incorrect precision",f.prec,prec1
998 | ^
99954 | if x.mode&mTrr and fabs(f.lam-lam1) > toler: print "incorrect lambda",f.lam,lam1
100055 | for i in range(DIM):
1001 |
1002
1003src\bundles\md_crds\gromacs\xdrfile-1.1.4\src\python\xdrfile_test.py:54:60: SyntaxError: Simple statements must be separated by newlines or semicolons
1004 |
100552 | if fabs(f.time-time1-k) > toler: print "incorrect time",f.time,time1+k
100653 | if not x.mode&mTrr and fabs(f.prec-prec1) > toler: print "incorrect precision",f.prec,prec1
100754 | if x.mode&mTrr and fabs(f.lam-lam1) > toler: print "incorrect lambda",f.lam,lam1
1008 | ^
100955 | for i in range(DIM):
101056 | for j in range(DIM):
1011 |
1012
1013src\bundles\md_crds\gromacs\xdrfile-1.1.4\src\python\xdrfile_test.py:57:66: SyntaxError: Simple statements must be separated by newlines or semicolons
1014 |
101555 | for i in range(DIM):
101656 | for j in range(DIM):
101757 | if fabs(f.box[i][j] - box1[i][j]) > toler: print "box incorrect",f.box[i][j],box1[i][j]
1018 | ^
101958 | for i in range(x.natoms):
102059 | for j in range(DIM):
1021 |
1022
1023src\bundles\md_crds\gromacs\xdrfile-1.1.4\src\python\xdrfile_test.py:61:56: SyntaxError: Simple statements must be separated by newlines or semicolons
1024 |
102559 | for j in range(DIM):
102660 | target = (i+1)*3.7 + (j+1)
102761 | if f.x[i][j] - target > toler : print "x incorrect"
1028 | ^
102962 | print fn,"OK"
1030 |
1031
1032src\bundles\md_crds\gromacs\xdrfile-1.1.4\src\python\xdrfile_test.py:62:11: SyntaxError: Simple statements must be separated by newlines or semicolons
1033 |
103460 | target = (i+1)*3.7 + (j+1)
103561 | if f.x[i][j] - target > toler : print "x incorrect"
103662 | print fn,"OK"
1037 | ^
103863 |
103964 | test("../test.trr")
1040 |
1041
1042src\bundles\std_commands\src\align.py:312:37: NPY201 [*] `np.in1d` will be removed in NumPy 2.0. Use `numpy.isin` instead.
1043 |
1044310 | for s, a in atoms.by_structure:
1045311 | satoms = s.atoms
1046312 | catoms.append(satoms.filter(in1d(satoms.chain_ids, a.unique_chain_ids)))
1047 | ^^^^ NPY201
1048313 | from chimerax.atomic import concatenate, Atoms
1049314 | return concatenate(catoms, Atoms)
1050 |
1051 = help: Replace with `numpy.isin`
1052
1053src\bundles\std_commands\src\sym.py:447:16: NPY201 [*] `np.in1d` will be removed in NumPy 2.0. Use `numpy.isin` instead.
1054 |
1055445 | mmcif_cids = mmcif_chain_ids(atoms, self.from_mmcif)
1056446 | from numpy import in1d, logical_not
1057447 | mask = in1d(mmcif_cids, chain_ids)
1058 | ^^^^ NPY201
1059448 | included_atoms = atoms.filter(mask)
1060449 | logical_not(mask,mask)
1061 |
1062 = help: Replace with `numpy.isin`
1063
1064Found 113 errors.
1065[*] 8 fixable with the `--fix` option.