File: core_file_checks.py

package info (click to toggle)
promod3 3.4.2%2Bds-1
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 966,596 kB
  • sloc: cpp: 55,820; python: 18,058; makefile: 85; sh: 51
file content (14 lines) | stat: -rw-r--r-- 503 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
"""Test for file reading."""
from promod3.core import helper
from promod3.core import pm3argparse

p = pm3argparse.PM3ArgumentParser(__doc__)
p.add_argument('file', type=str)
opts = p.Parse()

helper.FileExists('Test file', 1, opts.file)

opts.name, opts.ext, opts.gz = helper.FileExtension('Test file', 2,
                                                    opts.file,
                                                    ('pdb', 'mmcif'),
                                                    gzip=True)