-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'EBIvariation:master' into docker-metadata
- Loading branch information
Showing
9 changed files
with
449 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
#!/usr/bin/env python | ||
|
||
# Copyright 2020 EMBL - European Bioinformatics Institute | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
import logging | ||
from argparse import ArgumentParser | ||
|
||
from ebi_eva_common_pyutils.logger import logging_config as log_cfg | ||
|
||
from eva_submission.eload_status import EloadStatus | ||
from eva_submission.eload_validation import EloadValidation | ||
from eva_submission.submission_config import load_config | ||
|
||
logger = log_cfg.get_logger(__name__) | ||
|
||
|
||
def main(): | ||
argparse = ArgumentParser(description='Provide a submission status for any ELOAD based on what has been accessioned and loaded.') | ||
argparse.add_argument('--eload', required=True, type=int, help='The ELOAD number for this submission') | ||
argparse.add_argument('--debug', action='store_true', default=False, | ||
help='Set the script to output logging information at debug level') | ||
|
||
args = argparse.parse_args() | ||
|
||
log_cfg.add_stdout_handler() | ||
if args.debug: | ||
log_cfg.set_log_level(logging.DEBUG) | ||
|
||
# Load the config_file from default location | ||
load_config() | ||
|
||
with EloadStatus(args.eload) as eload: | ||
eload.status() | ||
|
||
|
||
if __name__ == "__main__": | ||
main() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.