Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bdd-io-feature #28

Open
wants to merge 2 commits into
base: pre-master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions features/feature-io-api.feature
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
Feature: Simple and intuitive scene loading

The scientific user explores the data and prototypes new algorithms.
It needs access not only to the calibrated data,
but also to the raw data and probably a majority of the metadata.
The user would work with data locally, and it has to be easy to tell mpop2 where the data is.
Providing filename templates or editing config file before starting working is a pain, so it should be avoided.

To load the data should be a simple 1-step procedure.
At load time, the user provides the data and metadata he/she needs,
and if some items are unavailable/unaccessible,
the user should be informed in a gentle but clear way (ie. no crash).
The data and metadata available from the file have to be explorable,
so that the user don’t need to guess what the (meta)data is called.

Scenario: 1-step data loading
Given data is available
When user loads the data without providing a config file
Then scene is returned

Scenario: No crash when metadata is missing
Given data is available
When user loads the data without providing a config file
And some items are no available
Then scene is returned
16 changes: 16 additions & 0 deletions features/steps/steps-io-api.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
@given(u'data is available')
def step_impl(context):
assert False

@when(u'user loads the data without providing a config file')
def step_impl(context):
assert False

@then(u'scene is returned')
def step_impl(context):
assert False

@when(u'some items are no available')
def step_impl(context):
assert False

3 changes: 2 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,8 @@
os.path.join('etc', 'eps_avhrrl1b_6.5.xml')])],
zip_safe=False,
install_requires=requires,
test_requires=["mock"],
test_requires=["mock",
'behave'],
extras_require={'xRIT': ['mipp >= 0.6.0'],
'hdf_eos': ['pyhdf'],
'viirs': ['h5py'],
Expand Down