Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
38 commits
Select commit Hold shift + click to select a range
1170111
setting up netcdf move
Mar 24, 2022
8bf8dc5
drafting util functions
Mar 24, 2022
2b0df63
refactoring to expose resolve_read and resolve_write like in R
Mar 24, 2022
850e811
SEIRS model at this stage fails [skipci]
Mar 25, 2022
2259ecc
[skip ci] fix mypy errors [skip ci]
Mar 25, 2022
6da168b
Fix file_type
RyanJField Mar 29, 2022
e0af496
[skip ci] drafting tests
Mar 29, 2022
187209a
[skip ci] Merge branch 'feature/netcdf' of github.com:FAIRDataPipelin…
Mar 29, 2022
0f537f8
[skip ci] writing wrapper function to write netcdf data
Mar 31, 2022
16b7a14
testing wrappers to write variables into netcdf file
Mar 31, 2022
eb4f62d
increase test coverage
Apr 1, 2022
cb8d728
[skip ci] improve extract_id testing
Apr 1, 2022
6539d5c
[skip ci] added function to create nested group in netcdf dataset
Apr 1, 2022
d6e69f6
refactoring tests to increase coverage
Apr 3, 2022
66b398d
remove unneeded checks
Apr 3, 2022
04e5e5b
string refactoring
Apr 3, 2022
db06c64
implemented wrapper function to write data with attributes
Apr 27, 2022
9a22d7c
test create_nd_variables_in_group_w_attribute
Apr 27, 2022
4386110
increasing test coverage
Apr 27, 2022
a87d3d2
testing write_array
Apr 28, 2022
9ca7eab
testing write_array with no edge cases
Apr 28, 2022
c979fbf
adding missing files
Apr 28, 2022
6bd69b3
array variable will be stored using default name array
Apr 28, 2022
660a297
added more test code to prove update capabilities of calling write_ar…
Apr 28, 2022
aef1e11
code and tests refactoring
Apr 29, 2022
d76a759
fix wrong assert in test
Apr 29, 2022
46a5be3
refactoring test to fix windows CI
Apr 29, 2022
48ab107
more refactoring to test for windows CI
Apr 29, 2022
14a4045
testing append new variable scenario to netcdf file
Apr 29, 2022
4e70b8d
refactor
Jun 15, 2022
fd5bdbd
Merge branch 'dev' of github.com:FAIRDataPipeline/pyDataPipeline into…
Jun 15, 2022
0a03289
refactored code and split write array in two : prepare headers and wr…
Jun 22, 2022
08ff277
fixed netcdf tests
Jun 22, 2022
5d27bc1
remove unused code
Jun 22, 2022
0b56506
refactored prepare headers to also set data variable
Jun 27, 2022
87d6ca0
refactoring
Jun 27, 2022
b8bbe74
refactoring
Jun 27, 2022
353a7af
refactoring according to new specifications and addying enum types
Jul 11, 2022
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
13 changes: 12 additions & 1 deletion data_pipeline_api/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
"initialise",
"link_read",
"link_write",
"resolve_read",
"resolve_write",
"read_array",
"write_array",
"finalise",
"raise_issue_by_data_product",
"raise_issue_by_index",
Expand All @@ -14,7 +18,14 @@
]

from .fdp_utils import get_handle_index_from_path
from .link import link_read, link_write
from .link import (
link_read,
link_write,
read_array,
resolve_read,
resolve_write,
write_array,
)
from .pipeline import finalise, initialise
from .raise_issue import (
raise_issue_by_data_product,
Expand Down
21 changes: 21 additions & 0 deletions data_pipeline_api/exceptions.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
"""
custom exception for netCDF wrappers
"""


class Error(Exception):
"""Base class for other exceptions"""

pass


class AttributeSizeError(Error):
"""Raised when the len attribute related input are different"""

pass


class DataSizeError(Error):
"""Raised when the length of data related input are different"""

pass
Loading