Skip to content

num_tps in process_vcfs main function #75

@ComeBackCity

Description

@ComeBackCity

Hi, I am running into the following issue while running timesweeper process

Namespace(mode='process', in_dir='win_size_sims/vcfs/', threads='1')
[DEBUG] vcflist: ['win_size_sims/vcfs/ssv/2/2.multivcf.final', 'win_size_sims/vcfs/ssv/0/0.multivcf.final', 'win_size_sims/vcfs/ssv/1/1.multivcf.final', 'win_size_sims/vcfs/sdn/2/2.multivcf.final', 'win_size_sims/vcfs/sdn/0/0.multivcf.final', 'win_size_sims/vcfs/sdn/1/1.multivcf.final', 'win_size_sims/vcfs/neut/2/2.multivcf.final', 'win_size_sims/vcfs/neut/0/0.multivcf.final', 'win_size_sims/vcfs/neut/1/1.multivcf.final']
[DEBUG] threads: 1
[DEBUG] type(ua.threads): <class 'str'>
[DEBUG] int(ua.threads): 1
Traceback (most recent call last):
 File "/fs/cbcb-lab/ekmolloy/gsaha/anaconda3/envs/timesweeper/bin/timesweeper", line 7, in <module>
  sys.exit(ts_main())
       ^^^^^^^^^
 File "/fs/cbcb-lab/ekmolloy/gsaha/anaconda3/envs/timesweeper/lib/python3.12/site-packages/timesweeper/cli.py", line 460, in ts_main
  process_vcfs.main(ua)   
  ^^^^^^^^^^^^^^^^^^^^^
 File "/fs/cbcb-lab/ekmolloy/gsaha/anaconda3/envs/timesweeper/lib/python3.12/site-packages/timesweeper/process_vcfs.py", line 143, in main
  p.map(vcflist, cycle([ua.num_tps]))
             ^^^^^^^^^^
AttributeError: 'Namespace' object has no attribute 'num_tps'

The prints were debug messages I added to the code to see exactly where I am running into the issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions