Skip to content
This repository was archived by the owner on Nov 28, 2023. It is now read-only.
This repository was archived by the owner on Nov 28, 2023. It is now read-only.

DataGenerator crashes when no "pssm_source" is provided #240

@DarioMarzella

Description

@DarioMarzella

Describe the bug
DataGenerator crashes when no "pssm_source" is provided

Environment:

  • OS system:Linux

To Reproduce
Steps/commands to reproduce the behaviour:

  1. Create a DataGenerator object, do not specify "pssm_souce" in it
  2. Run the script

Actual Results or Error Info

Traceback (most recent call last):
File "/srv/home2/dariom/deeprank_edesolv/./Edesolv/generate_dataset.py", line 55, in
database.create_database(prog_bar=False)
File "/srv/home2/dariom/deeprank_edesolv/deeprank/generate/DataGenerator.py", line 253, in create_database
self.f5.attrs['pssm_source'] = os.path.abspath(
File "/home/dariom/anaconda3/envs/3D-EP/lib/python3.9/posixpath.py", line 374, in abspath
path = os.fspath(path)
TypeError: expected str, bytes or os.PathLike object, not NoneType

Additional Context
The problem is raised in deeprank/generate/DataGenerator.py, line 253.
Can be fixed by simply adding the following line:

if self.pssm_source is not None:

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions