-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into sentry-filtering-AnalysisError
- Loading branch information
Showing
5 changed files
with
125 additions
and
4 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
64 changes: 64 additions & 0 deletions
64
cdci_data_analysis/plugins/dummy_plugin/empty_instrument_with_posix_path.py
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,64 @@ | ||
""" | ||
Overview | ||
-------- | ||
general info about this module | ||
Classes and Inheritance Structure | ||
---------------------------------------------- | ||
.. inheritance-diagram:: | ||
Summary | ||
--------- | ||
.. autosummary:: | ||
list of the module you want | ||
Module API | ||
---------- | ||
""" | ||
|
||
from __future__ import absolute_import, division, print_function | ||
|
||
__author__ = "Andrea Tramacere" | ||
|
||
# Standard library | ||
# eg copy | ||
# absolute import rg:from copy import deepcopy | ||
|
||
# Dependencies | ||
# eg numpy | ||
# absolute import eg: import numpy as np | ||
|
||
# Project | ||
# relative import eg: from .mod import f | ||
|
||
|
||
from cdci_data_analysis.analysis.instrument import Instrument | ||
from cdci_data_analysis.analysis.queries import SourceQuery, InstrumentQuery | ||
|
||
from .data_server_dispatcher import FileParameterQuery | ||
|
||
from ...analysis.parameters import POSIXPath | ||
from .empty_instrument import BoundaryFloat | ||
|
||
def my_instr_factory(): | ||
src_query = SourceQuery('src_query') | ||
|
||
instr_query = InstrumentQuery(name='empty_instrument_query', | ||
input_prod_list_name='p_list', | ||
catalog=None, | ||
catalog_name='user_catalog') | ||
|
||
f = POSIXPath(value=None, name='dummy_POSIX_file', is_optional=True) | ||
p = BoundaryFloat(value=10., name='p', units='W', ) | ||
file_query = FileParameterQuery('file_parameters_dummy_query', | ||
parameters_list=[f, p]) | ||
|
||
query_dictionary = {'file_dummy': 'file_parameters_dummy_query'} | ||
|
||
return Instrument('empty-with-posix-path', | ||
src_query=src_query, | ||
instrumet_query=instr_query, | ||
product_queries_list=[file_query,], | ||
query_dictionary=query_dictionary) |
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