Tox21Downloader   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 6
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 1
Metric Value
wmc 1
c 1
b 0
f 1
dl 0
loc 6
ccs 4
cts 4
cp 1
rs 10
1
#! /usr/bin/env python
0 ignored issues
show
Coding Style introduced by
This module should have a docstring.

The coding style of this project requires that you add a docstring to this code element. Below, you find an example for methods:

class SomeClass:
    def some_method(self):
        """Do x and return foo."""

If you would like to know more about docstrings, we recommend to read PEP-257: Docstring Conventions.

Loading history...
2
#
3
# Copyright (C) 2016 Rich Lewis <[email protected]>
4
# License: 3-clause BSD
5
6 1
import os
7 1
from .base import Downloader
8
9 1
class Tox21Downloader(Downloader):
0 ignored issues
show
Coding Style introduced by
This class should have a docstring.

The coding style of this project requires that you add a docstring to this code element. Below, you find an example for methods:

class SomeClass:
    def some_method(self):
        """Do x and return foo."""

If you would like to know more about docstrings, we recommend to read PEP-257: Docstring Conventions.

Loading history...
10 1
    filenames = ['data_allsdf', 'challenge_testsdf',
11
                 'challenge_scoresdf', 'challenge_scoretxt']
12 1
    urls = ['https://tripod.nih.gov/tox21/challenge/download?id=tox21_10k_' \
13
            + name for name in filenames]
14 1
    filenames = ['train.sdf.zip', 'valid.sdf.zip', 'test.sdf.zip', 'test.txt']
15
16 1
if __name__ == '__main__':
17
    Tox21Downloader.download(os.getcwd())
18