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

WenjieDu / PyPOTS / 8614163418

09 Apr 2024 10:24AM CUT coverage: 81.03% (+0.2%) from 80.813%
8614163418

Pull #343

github

web-flow
Merge 1fd684f5b into 93062a244
Pull Request #343: Apply SAITS embedding strategy to new added models

79 of 80 new or added lines in 10 files covered. (98.75%)

2 existing lines in 1 file now uncovered.

6847 of 8450 relevant lines covered (81.03%)

4.85 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