• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

WenjieDu / PyPOTS / 8471312563

28 Mar 2024 05:30PM UTC coverage: 81.773% (-0.02%) from 81.788%
8471312563

Pull #322

github

web-flow
Merge 71c5dda83 into bfbfcec43
Pull Request #322: Simplify MultiHeadAttention

8 of 10 new or added lines in 2 files covered. (80.0%)

2 existing lines in 2 files now uncovered.

5478 of 6699 relevant lines covered (81.77%)

1.63 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/pypots/cli/pypots_cli.py
1
"""
2
PyPOTS CLI (Command Line Interface) tool
3
"""
4

5
# Created by Wenjie Du <wenjay.du@gmail.com>
6
# License: BSD-3-Clause
7

8
from argparse import ArgumentParser
×
9

10
from .dev import DevCommand
×
11
from .doc import DocCommand
×
12
from .env import EnvCommand
×
13
from .tuning import TuningCommand
×
14

15

16
def main():
×
17
    parser = ArgumentParser(
×
18
        "PyPOTS Command-Line-Interface tool", usage="pypots-cli <command> [<args>]"
19
    )
20
    commands_parser = parser.add_subparsers(help="pypots-cli command helpers")
×
21

22
    # Register commands here
23
    DevCommand.register_subcommand(commands_parser)
×
24
    DocCommand.register_subcommand(commands_parser)
×
25
    EnvCommand.register_subcommand(commands_parser)
×
26
    TuningCommand.register_subcommand(commands_parser)
×
27

28
    # parse all arguments
29
    args = parser.parse_args()
×
30

31
    if not hasattr(args, "func"):
×
32
        parser.print_help()
×
33
        exit(1)
×
34

35
    # then run
36
    service = args.func(args)
×
37
    service.run()
×
38

39

40
if __name__ == "__main__":
×
41
    main()
×
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc