fits2tmp 0.3.0__tar.gz → 1.0.0__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.
@@ -1,23 +1,23 @@
1
- Metadata-Version: 2.3
1
+ Metadata-Version: 2.4
2
2
  Name: fits2tmp
3
- Version: 0.3.0
3
+ Version: 1.0.0
4
4
  Summary: A way of loading FITS files into temporary filesystems to make them available in memory.
5
- License: BSD-3-Clause
6
5
  Author: Verity Allan
7
- Author-email: vla22@cam.ac.uk
8
- Requires-Python: >=3.10,<4.0
9
- Classifier: License :: OSI Approved :: BSD License
6
+ Author-email: Verity Allan <vla22@cam.ac.uk>
7
+ License-Expression: BSD-3-Clause
10
8
  Classifier: Programming Language :: Python :: 3
11
9
  Classifier: Programming Language :: Python :: 3.10
12
10
  Classifier: Programming Language :: Python :: 3.11
13
11
  Classifier: Programming Language :: Python :: 3.12
14
12
  Classifier: Programming Language :: Python :: 3.13
15
- Requires-Dist: astropy (>=6.1.4,<7.0.0)
16
- Requires-Dist: dask[distributed] (>=2025.1.0,<2026.0.0)
17
- Requires-Dist: h5py (>=3.12.1,<4.0.0)
18
- Requires-Dist: numpy (>=2.1.2,<3.0.0)
19
- Requires-Dist: pytest (>=8.3.3,<9.0.0)
20
- Requires-Dist: zarr (>=2.18.3,<3.0.0)
13
+ Classifier: Programming Language :: Python :: 3.14
14
+ Requires-Dist: dask[distributed]>=2025.1.0,<2026
15
+ Requires-Dist: astropy>=6.1.4,<7
16
+ Requires-Dist: h5py>=3.16.0
17
+ Requires-Dist: numpy>=2.1.2,<3
18
+ Requires-Dist: pytest>=8.3.3,<9
19
+ Requires-Dist: zarr>=3.4.1
20
+ Requires-Python: >=3.12, <4
21
21
  Project-URL: Repository, https://gitlab.developers.cam.ac.uk/phy/ra/vla22-phd/fits2tmp
22
22
  Description-Content-Type: text/markdown
23
23
 
@@ -47,4 +47,3 @@ import fits2tmp as f2t
47
47
  a = fakefits2tmpfiles("fits", "/path/to/input/data", "/path/to/temporary/filesystem", "path/to/header/", (100, 100, 100), chunks=(20,20,20))
48
48
  ```
49
49
 
50
-
@@ -0,0 +1,38 @@
1
+ [project]
2
+ name = "fits2tmp"
3
+ version = "1.0.0"
4
+ description = "A way of loading FITS files into temporary filesystems to make them available in memory."
5
+ requires-python = ">=3.12,<4"
6
+ readme = "README.md"
7
+ license = "BSD-3-Clause"
8
+ classifiers = [
9
+ "Programming Language :: Python :: 3",
10
+ "Programming Language :: Python :: 3.10",
11
+ "Programming Language :: Python :: 3.11",
12
+ "Programming Language :: Python :: 3.12",
13
+ "Programming Language :: Python :: 3.13",
14
+ "Programming Language :: Python :: 3.14",
15
+ ]
16
+ dependencies = [
17
+ "dask[distributed]>=2025.1.0,<2026",
18
+ "astropy>=6.1.4,<7",
19
+ "h5py>=3.16.0",
20
+ "numpy>=2.1.2,<3",
21
+ "pytest>=8.3.3,<9",
22
+ "zarr>=3.4.1",
23
+ ]
24
+
25
+ [[project.authors]]
26
+ name = "Verity Allan"
27
+ email = "vla22@cam.ac.uk"
28
+
29
+ [project.urls]
30
+ Repository = "https://gitlab.developers.cam.ac.uk/phy/ra/vla22-phd/fits2tmp"
31
+
32
+ [build-system]
33
+ requires = ["uv_build>=0.13.5,<0.14.0"]
34
+ build-backend = "uv_build"
35
+
36
+ [tool.pytest.ini_options]
37
+ addopts = ["--import-mode=importlib"]
38
+ pythonpath = "src/fits2tmp/"
@@ -0,0 +1,37 @@
1
+ [project]
2
+ name = "fits2tmp"
3
+ version = "1.0.0"
4
+ description = "A way of loading FITS files into temporary filesystems to make them available in memory."
5
+ authors = [{ name = "Verity Allan", email = "vla22@cam.ac.uk" }]
6
+ requires-python = ">=3.12,<4"
7
+ readme = "README.md"
8
+ license = "BSD-3-Clause"
9
+ classifiers = [
10
+ "Programming Language :: Python :: 3",
11
+ "Programming Language :: Python :: 3.10",
12
+ "Programming Language :: Python :: 3.11",
13
+ "Programming Language :: Python :: 3.12",
14
+ "Programming Language :: Python :: 3.13",
15
+ "Programming Language :: Python :: 3.14",
16
+ ]
17
+ dependencies = [
18
+ "dask[distributed]>=2025.1.0,<2026",
19
+ "astropy>=6.1.4,<7",
20
+ "h5py>=3.16.0",
21
+ "numpy>=2.1.2,<3",
22
+ "pytest>=8.3.3,<9",
23
+ "zarr>=3.4.1",
24
+ ]
25
+
26
+ [project.urls]
27
+ Repository = "https://gitlab.developers.cam.ac.uk/phy/ra/vla22-phd/fits2tmp"
28
+
29
+ [build-system]
30
+ requires = ["uv_build>=0.13.5,<0.14.0"]
31
+ build-backend = "uv_build"
32
+
33
+ [tool.pytest.ini_options]
34
+ addopts = [
35
+ "--import-mode=importlib",
36
+ ]
37
+ pythonpath = "src/fits2tmp/"
@@ -46,9 +46,9 @@ def file2dict(input_file, filepath) -> dict:
46
46
  with open(filepath, 'r') as j:
47
47
  contents = json.loads(j.read())
48
48
  return contents
49
- filepath = []
49
+ #filepath = []
50
50
 
51
- def fun(darr, destination, header, block_info=None):
51
+ def fun(darr, destination, header, block_info=None, filepath=[]):
52
52
  arr_loc = block_info[None]['array-location']
53
53
  print(arr_loc)
54
54
  ch_size = block_info[None]['chunk-shape']
@@ -107,7 +107,7 @@ def disk2dah(filetype, inputpath, destination, headerloc, arraysize, chunks=None
107
107
  raise ValueError("The specified file type is not supported by fits2tmp.")
108
108
  return [d, destination, n_header, wcs_obj]
109
109
 
110
- def fakefits2tmpfiles(filetype, inputpath, destination, arraysize, headerloc=None, chunks=None, overlap=None):
110
+ def fakefits2tmpfiles(filetype, inputpath, destination, arraysize, headerloc=None, chunks=None, overlap=None, fpaths=[]):
111
111
  inputarray = disk2dah(filetype, inputpath, destination, headerloc, arraysize, chunks)
112
112
  if overlap == None:
113
113
  overlap = [0,0,0]
@@ -121,7 +121,6 @@ def fakefits2tmpfiles(filetype, inputpath, destination, arraysize, headerloc=Non
121
121
  print(len(darr.chunks))
122
122
  # why am I pushing this array to delayed? ans: to parallelise construction of the list
123
123
  #dd = darr.to_delayed()
124
- fpaths = []
125
124
  for i in range(len(darr.chunks[0])):
126
125
  x = i * chunks[0] - overlap[0]
127
126
  x_delt = (i* chunks[0]) + chunks[0] + overlap[0]
fits2tmp-0.3.0/LICENSE DELETED
@@ -1,28 +0,0 @@
1
- BSD 3-Clause License
2
-
3
- Copyright (c) 2024, Verity Allan
4
-
5
- Redistribution and use in source and binary forms, with or without
6
- modification, are permitted provided that the following conditions are met:
7
-
8
- 1. Redistributions of source code must retain the above copyright notice, this
9
- list of conditions and the following disclaimer.
10
-
11
- 2. Redistributions in binary form must reproduce the above copyright notice,
12
- this list of conditions and the following disclaimer in the documentation
13
- and/or other materials provided with the distribution.
14
-
15
- 3. Neither the name of the copyright holder nor the names of its
16
- contributors may be used to endorse or promote products derived from
17
- this software without specific prior written permission.
18
-
19
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
20
- AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
21
- IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
22
- DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
23
- FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
24
- DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
25
- SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
26
- CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
27
- OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
28
- OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
@@ -1,27 +0,0 @@
1
- [tool.poetry]
2
- name = "fits2tmp"
3
- version = "0.3.0"
4
- description = "A way of loading FITS files into temporary filesystems to make them available in memory."
5
- license = "BSD-3-Clause"
6
- authors = ["Verity Allan <vla22@cam.ac.uk>"]
7
- readme = "README.md"
8
- repository = "https://gitlab.developers.cam.ac.uk/phy/ra/vla22-phd/fits2tmp"
9
-
10
- [tool.poetry.dependencies]
11
- python = "^3.10"
12
- dask = {extras = ["distributed"], version = "^2025.1.0"}
13
- astropy = "^6.1.4"
14
- h5py = "^3.12.1"
15
- numpy = "^2.1.2"
16
- pytest = "^8.3.3"
17
- zarr = "^2.18.3"
18
-
19
- [tool.pytest.ini_options]
20
- addopts = [
21
- "--import-mode=importlib",
22
- ]
23
- pythonpath = "src/fits2tmp/"
24
-
25
- [build-system]
26
- requires = ["poetry-core"]
27
- build-backend = "poetry.core.masonry.api"
File without changes