obsarray 1.0__tar.gz → 1.0.2__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (75) hide show
  1. {obsarray-1.0/obsarray.egg-info → obsarray-1.0.2}/PKG-INFO +18 -15
  2. obsarray-1.0.2/notebook/test_register_err_corr_form.py +45 -0
  3. {obsarray-1.0 → obsarray-1.0.2}/obsarray/_version.py +4 -4
  4. {obsarray-1.0 → obsarray-1.0.2}/obsarray/templater/dataset_util.py +3 -3
  5. {obsarray-1.0 → obsarray-1.0.2/obsarray.egg-info}/PKG-INFO +18 -15
  6. obsarray-1.0.2/obsarray.egg-info/SOURCES.txt +32 -0
  7. {obsarray-1.0 → obsarray-1.0.2}/obsarray.egg-info/requires.txt +2 -2
  8. obsarray-1.0.2/obsarray.egg-info/top_level.txt +5 -0
  9. obsarray-1.0.2/pyproject.toml +47 -0
  10. obsarray-1.0.2/setup.cfg +4 -0
  11. obsarray-1.0.2/setup.py +7 -0
  12. {obsarray-1.0 → obsarray-1.0.2}/versioneer.py +873 -481
  13. obsarray-1.0/.gitignore +0 -119
  14. obsarray-1.0/.pre-commit-config.yaml +0 -5
  15. obsarray-1.0/docs/Makefile +0 -20
  16. obsarray-1.0/docs/index.rst +0 -66
  17. obsarray-1.0/docs/make.bat +0 -36
  18. obsarray-1.0/obsarray/templater/template_util_jon.py +0 -206
  19. obsarray-1.0/obsarray.egg-info/SOURCES.txt +0 -68
  20. obsarray-1.0/obsarray.egg-info/top_level.txt +0 -1
  21. obsarray-1.0/quality_documentation/.gitignore +0 -295
  22. obsarray-1.0/quality_documentation/QualityDocumentation.tex +0 -122
  23. obsarray-1.0/quality_documentation/base/CookiecutterMacros.tex +0 -7
  24. obsarray-1.0/quality_documentation/base/acronyms.tex +0 -10
  25. obsarray-1.0/quality_documentation/base/history.tex +0 -10
  26. obsarray-1.0/quality_documentation/base/metadata.tex +0 -23
  27. obsarray-1.0/quality_documentation/base/pythoninputstyle.tex +0 -20
  28. obsarray-1.0/quality_documentation/base/sil2.tex +0 -11
  29. obsarray-1.0/quality_documentation/base/sil3.tex +0 -11
  30. obsarray-1.0/quality_documentation/base/sources.bib +0 -22
  31. obsarray-1.0/quality_documentation/base/sources.tex +0 -5
  32. obsarray-1.0/quality_documentation/countpdfpages.sh +0 -8
  33. obsarray-1.0/quality_documentation/footnotehyper-sphinx.sty +0 -269
  34. obsarray-1.0/quality_documentation/obsarray_QF-59.docm +0 -0
  35. obsarray-1.0/quality_documentation/obsarray_requirements.docx +0 -0
  36. obsarray-1.0/quality_documentation/review_checklists/qf-16a.docx +0 -0
  37. obsarray-1.0/quality_documentation/review_checklists/qf-16b.docx +0 -0
  38. obsarray-1.0/quality_documentation/review_checklists/qf-16c.docx +0 -0
  39. obsarray-1.0/quality_documentation/review_checklists/qf-16d.docx +0 -0
  40. obsarray-1.0/quality_documentation/review_checklists/qf-16e.docx +0 -0
  41. obsarray-1.0/quality_documentation/review_checklists/qf-16f.docx +0 -0
  42. obsarray-1.0/quality_documentation/softwareRequirements.sty +0 -153
  43. obsarray-1.0/quality_documentation/sphinx.sty +0 -1960
  44. obsarray-1.0/quality_documentation/sphinxcyrillic.sty +0 -55
  45. obsarray-1.0/quality_documentation/sphinxhighlight.sty +0 -105
  46. obsarray-1.0/quality_documentation/sphinxhowto.cls +0 -102
  47. obsarray-1.0/quality_documentation/sphinxmanual.cls +0 -128
  48. obsarray-1.0/quality_documentation/sphinxmessages.sty +0 -21
  49. obsarray-1.0/quality_documentation/sphinxmulticell.sty +0 -317
  50. obsarray-1.0/quality_documentation/uml/copy your design png file into this folder.txt +0 -1
  51. obsarray-1.0/setup.cfg +0 -30
  52. obsarray-1.0/setup.py +0 -48
  53. obsarray-1.0/tox.ini +0 -12
  54. {obsarray-1.0 → obsarray-1.0.2}/LICENSE +0 -0
  55. {obsarray-1.0 → obsarray-1.0.2}/MANIFEST.in +0 -0
  56. {obsarray-1.0 → obsarray-1.0.2}/README.md +0 -0
  57. {obsarray-1.0 → obsarray-1.0.2}/docs/conf.py +0 -0
  58. {obsarray-1.0 → obsarray-1.0.2}/obsarray/__init__.py +0 -0
  59. {obsarray-1.0 → obsarray-1.0.2}/obsarray/err_corr.py +0 -0
  60. {obsarray-1.0 → obsarray-1.0.2}/obsarray/flag_accessor.py +0 -0
  61. {obsarray-1.0 → obsarray-1.0.2}/obsarray/templater/__init__.py +0 -0
  62. {obsarray-1.0 → obsarray-1.0.2}/obsarray/templater/dstemplater.py +0 -0
  63. {obsarray-1.0 → obsarray-1.0.2}/obsarray/templater/dswriter.py +0 -0
  64. {obsarray-1.0 → obsarray-1.0.2}/obsarray/templater/template_util.py +0 -0
  65. {obsarray-1.0 → obsarray-1.0.2}/obsarray/templater/tests/__init__.py +0 -0
  66. {obsarray-1.0 → obsarray-1.0.2}/obsarray/templater/tests/test_dataset_util.py +0 -0
  67. {obsarray-1.0 → obsarray-1.0.2}/obsarray/templater/tests/test_dswriter.py +0 -0
  68. {obsarray-1.0 → obsarray-1.0.2}/obsarray/templater/tests/test_template_util.py +0 -0
  69. {obsarray-1.0 → obsarray-1.0.2}/obsarray/test/__init__.py +0 -0
  70. {obsarray-1.0 → obsarray-1.0.2}/obsarray/test/test_err_corr_forms.py +0 -0
  71. {obsarray-1.0 → obsarray-1.0.2}/obsarray/test/test_flag_accessor.py +0 -0
  72. {obsarray-1.0 → obsarray-1.0.2}/obsarray/test/test_unc_accessor.py +0 -0
  73. {obsarray-1.0 → obsarray-1.0.2}/obsarray/unc_accessor.py +0 -0
  74. {obsarray-1.0 → obsarray-1.0.2}/obsarray/utils.py +0 -0
  75. {obsarray-1.0 → obsarray-1.0.2}/obsarray.egg-info/dependency_links.txt +0 -0
@@ -1,20 +1,24 @@
1
- Metadata-Version: 2.1
1
+ Metadata-Version: 2.4
2
2
  Name: obsarray
3
- Version: 1.0
3
+ Version: 1.0.2
4
4
  Summary: Measurement data handling in Python
5
- Home-page: https://github.com/comet-toolkit/obsarray
6
- Author: CoMet Toolkit Team
7
- Author-email: team@comet-toolkit.org
8
- License: GPLv3
9
- Platform: UNKNOWN
10
- Classifier: Development Status :: 2 - Pre-Alpha
11
- Classifier: Programming Language :: Python
12
- Classifier: Programming Language :: Python :: 3.8
13
- Classifier: Programming Language :: Python :: 3.9
14
- Classifier: Programming Language :: Python :: 3.10
15
- Classifier: Programming Language :: Python :: 3.11
16
- Provides-Extra: dev
5
+ Author-email: CoMet Toolkit Team <team@comet-toolkit.org>
6
+ Project-URL: Homepage, https://github.com/comet-toolkit/obsarray
7
+ Requires-Python: >=3.8
8
+ Description-Content-Type: text/markdown
17
9
  License-File: LICENSE
10
+ Requires-Dist: comet_maths
11
+ Requires-Dist: netcdf4
12
+ Requires-Dist: xarray
13
+ Provides-Extra: dev
14
+ Requires-Dist: pre-commit; extra == "dev"
15
+ Requires-Dist: tox; extra == "dev"
16
+ Requires-Dist: sphinx; extra == "dev"
17
+ Requires-Dist: sphinx_design; extra == "dev"
18
+ Requires-Dist: sphinx_book_theme; extra == "dev"
19
+ Requires-Dist: ipython; extra == "dev"
20
+ Requires-Dist: sphinx_autosummary_accessors; extra == "dev"
21
+ Dynamic: license-file
18
22
 
19
23
  # obsarray: Measurement uncertainty handling in Python
20
24
 
@@ -51,4 +55,3 @@ The development has been funded by:
51
55
  ## Project status
52
56
 
53
57
  obsarray is under active development. It is beta software.
54
-
@@ -0,0 +1,45 @@
1
+ from obsarray.err_corr import register_err_corr_form, BaseErrCorrForm
2
+ import xarray as xr
3
+ import numpy as np
4
+ import obsarray
5
+
6
+
7
+ @register_err_corr_form("new")
8
+ class NewForm(BaseErrCorrForm):
9
+
10
+ form = "new"
11
+ is_systematic = True
12
+
13
+ def build_matrix(self, idx: np.ndarray) -> np.ndarray:
14
+ return "abc"
15
+
16
+
17
+ # ds = xr.open_dataset("obs_example.nc")
18
+ #
19
+ # ds.unc["temperature"]["u_sys_temperature"] = (
20
+ # ["x", "y", "time"],
21
+ # ds.temperature * 0.03,
22
+ # {
23
+ # "err_corr": [
24
+ # {
25
+ # "dim": "x",
26
+ # "form": "new",
27
+ # "params": [],
28
+ # },
29
+ # {
30
+ # "dim": "y",
31
+ # "form": "systematic",
32
+ # "params": [],
33
+ # },
34
+ # {
35
+ # "dim": "time",
36
+ # "form": "systematic",
37
+ # "params": [],
38
+ # },
39
+ # ]
40
+ # },
41
+ # )
42
+ #
43
+ # p = ds.unc["temperature"]["u_sys_temperature"]
44
+ #
45
+ # pass
@@ -1,5 +1,5 @@
1
1
 
2
- # This file was generated by 'versioneer.py' (0.18) from
2
+ # This file was generated by 'versioneer.py' (0.29) from
3
3
  # revision-control system data, or from the parent directory name of an
4
4
  # unpacked source archive. Distribution tarballs contain a pre-generated copy
5
5
  # of this file.
@@ -8,11 +8,11 @@ import json
8
8
 
9
9
  version_json = '''
10
10
  {
11
- "date": "2024-04-02T15:14:15+0100",
11
+ "date": "2025-04-25T14:06:04+0100",
12
12
  "dirty": false,
13
13
  "error": null,
14
- "full-revisionid": "22fe504c5299f2e3adbb924ab737227182325cf6",
15
- "version": "v1.0"
14
+ "full-revisionid": "b26b43a5d2e41ccb9a5e73c00e6d16a28a8515a9",
15
+ "version": "1.0.2"
16
16
  }
17
17
  ''' # END VERSION_JSON
18
18
 
@@ -454,15 +454,15 @@ class DatasetUtil:
454
454
  if dtype == numpy.int8:
455
455
  return numpy.int8(-127)
456
456
  if dtype == numpy.uint8:
457
- return numpy.uint8(-1)
457
+ return numpy.iinfo(numpy.uint8).max
458
458
  elif dtype == numpy.int16:
459
459
  return numpy.int16(-32767)
460
460
  elif dtype == numpy.uint16:
461
- return numpy.uint16(-1)
461
+ return numpy.iinfo(numpy.uint16).max
462
462
  elif dtype == numpy.int32:
463
463
  return numpy.int32(-2147483647)
464
464
  elif dtype == numpy.uint32:
465
- return numpy.uint32(-1)
465
+ return numpy.iinfo(numpy.uint32).max
466
466
  elif dtype == numpy.int64:
467
467
  return numpy.int64(-9223372036854775806)
468
468
  elif dtype == numpy.float32:
@@ -1,20 +1,24 @@
1
- Metadata-Version: 2.1
1
+ Metadata-Version: 2.4
2
2
  Name: obsarray
3
- Version: 1.0
3
+ Version: 1.0.2
4
4
  Summary: Measurement data handling in Python
5
- Home-page: https://github.com/comet-toolkit/obsarray
6
- Author: CoMet Toolkit Team
7
- Author-email: team@comet-toolkit.org
8
- License: GPLv3
9
- Platform: UNKNOWN
10
- Classifier: Development Status :: 2 - Pre-Alpha
11
- Classifier: Programming Language :: Python
12
- Classifier: Programming Language :: Python :: 3.8
13
- Classifier: Programming Language :: Python :: 3.9
14
- Classifier: Programming Language :: Python :: 3.10
15
- Classifier: Programming Language :: Python :: 3.11
16
- Provides-Extra: dev
5
+ Author-email: CoMet Toolkit Team <team@comet-toolkit.org>
6
+ Project-URL: Homepage, https://github.com/comet-toolkit/obsarray
7
+ Requires-Python: >=3.8
8
+ Description-Content-Type: text/markdown
17
9
  License-File: LICENSE
10
+ Requires-Dist: comet_maths
11
+ Requires-Dist: netcdf4
12
+ Requires-Dist: xarray
13
+ Provides-Extra: dev
14
+ Requires-Dist: pre-commit; extra == "dev"
15
+ Requires-Dist: tox; extra == "dev"
16
+ Requires-Dist: sphinx; extra == "dev"
17
+ Requires-Dist: sphinx_design; extra == "dev"
18
+ Requires-Dist: sphinx_book_theme; extra == "dev"
19
+ Requires-Dist: ipython; extra == "dev"
20
+ Requires-Dist: sphinx_autosummary_accessors; extra == "dev"
21
+ Dynamic: license-file
18
22
 
19
23
  # obsarray: Measurement uncertainty handling in Python
20
24
 
@@ -51,4 +55,3 @@ The development has been funded by:
51
55
  ## Project status
52
56
 
53
57
  obsarray is under active development. It is beta software.
54
-
@@ -0,0 +1,32 @@
1
+ LICENSE
2
+ MANIFEST.in
3
+ README.md
4
+ pyproject.toml
5
+ setup.py
6
+ versioneer.py
7
+ docs/conf.py
8
+ notebook/test_register_err_corr_form.py
9
+ obsarray/__init__.py
10
+ obsarray/_version.py
11
+ obsarray/err_corr.py
12
+ obsarray/flag_accessor.py
13
+ obsarray/unc_accessor.py
14
+ obsarray/utils.py
15
+ obsarray.egg-info/PKG-INFO
16
+ obsarray.egg-info/SOURCES.txt
17
+ obsarray.egg-info/dependency_links.txt
18
+ obsarray.egg-info/requires.txt
19
+ obsarray.egg-info/top_level.txt
20
+ obsarray/templater/__init__.py
21
+ obsarray/templater/dataset_util.py
22
+ obsarray/templater/dstemplater.py
23
+ obsarray/templater/dswriter.py
24
+ obsarray/templater/template_util.py
25
+ obsarray/templater/tests/__init__.py
26
+ obsarray/templater/tests/test_dataset_util.py
27
+ obsarray/templater/tests/test_dswriter.py
28
+ obsarray/templater/tests/test_template_util.py
29
+ obsarray/test/__init__.py
30
+ obsarray/test/test_err_corr_forms.py
31
+ obsarray/test/test_flag_accessor.py
32
+ obsarray/test/test_unc_accessor.py
@@ -1,6 +1,6 @@
1
- numpy
2
- xarray
3
1
  comet_maths
2
+ netcdf4
3
+ xarray
4
4
 
5
5
  [dev]
6
6
  pre-commit
@@ -0,0 +1,5 @@
1
+ dist
2
+ docs
3
+ notebook
4
+ obsarray
5
+ quality_documentation
@@ -0,0 +1,47 @@
1
+ [build-system]
2
+ requires = ["setuptools>=61", "wheel"]
3
+ build-backend = "setuptools.build_meta"
4
+
5
+ [project]
6
+ name = "obsarray"
7
+ dynamic = ["version"]
8
+ description = "Measurement data handling in Python"
9
+ authors = [
10
+ { name="CoMet Toolkit Team", email="team@comet-toolkit.org" }
11
+ ]
12
+ readme = "README.md"
13
+ license-files = ["LICENSE"]
14
+ requires-python = ">=3.8"
15
+ dependencies = [
16
+ "comet_maths",
17
+ "netcdf4",
18
+ "xarray"
19
+ ]
20
+
21
+ [project.optional-dependencies]
22
+ dev = [
23
+ "pre-commit",
24
+ "tox",
25
+ "sphinx",
26
+ "sphinx_design",
27
+ "sphinx_book_theme",
28
+ "ipython",
29
+ "sphinx_autosummary_accessors"
30
+ ]
31
+
32
+ [project.urls]
33
+ "Homepage" = "https://github.com/comet-toolkit/obsarray"
34
+
35
+ [tool.setuptools]
36
+ include-package-data = true
37
+
38
+ [tool.setuptools.packages.find]
39
+ exclude = ["tests"]
40
+
41
+ [tool.versioneer]
42
+ VCS = "git"
43
+ style = "pep440"
44
+ versionfile_source = "obsarray/_version.py"
45
+ versionfile_build = "obsarray/_version.py"
46
+ tag_prefix = "v"
47
+ parentdir_prefix = ""
@@ -0,0 +1,4 @@
1
+ [egg_info]
2
+ tag_build =
3
+ tag_date = 0
4
+
@@ -0,0 +1,7 @@
1
+ import versioneer
2
+ from setuptools import setup
3
+
4
+ setup(
5
+ version=versioneer.get_version(),
6
+ cmdclass=versioneer.get_cmdclass(),
7
+ )