anta-database 0.3.0__tar.gz → 0.3.1__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 (49) hide show
  1. {anta_database-0.3.0 → anta_database-0.3.1}/PKG-INFO +2 -1
  2. {anta_database-0.3.0 → anta_database-0.3.1}/anta_database/database/database.py +2 -1
  3. {anta_database-0.3.0 → anta_database-0.3.1}/anta_database/plotting/plotting.py +10 -9
  4. {anta_database-0.3.0 → anta_database-0.3.1}/anta_database.egg-info/PKG-INFO +2 -1
  5. {anta_database-0.3.0 → anta_database-0.3.1}/anta_database.egg-info/requires.txt +1 -0
  6. {anta_database-0.3.0 → anta_database-0.3.1}/pyproject.toml +1 -0
  7. {anta_database-0.3.0 → anta_database-0.3.1}/.github/workflows/deploy.yml +0 -0
  8. {anta_database-0.3.0 → anta_database-0.3.1}/.github/workflows/release.yml +0 -0
  9. {anta_database-0.3.0 → anta_database-0.3.1}/.gitignore +0 -0
  10. {anta_database-0.3.0 → anta_database-0.3.1}/LICENSE +0 -0
  11. {anta_database-0.3.0 → anta_database-0.3.1}/README.md +0 -0
  12. {anta_database-0.3.0 → anta_database-0.3.1}/ROADMAP.md +0 -0
  13. {anta_database-0.3.0 → anta_database-0.3.1}/anta_database/__init__.py +0 -0
  14. {anta_database-0.3.0 → anta_database-0.3.1}/anta_database/anta_database.py +0 -0
  15. {anta_database-0.3.0 → anta_database-0.3.1}/anta_database/compiling/__init__.py +0 -0
  16. {anta_database-0.3.0 → anta_database-0.3.1}/anta_database/compiling/compile.py +0 -0
  17. {anta_database-0.3.0 → anta_database-0.3.1}/anta_database/compiling/reconnect.py +0 -0
  18. {anta_database-0.3.0 → anta_database-0.3.1}/anta_database/data/ANT_Basins_IMBIE2_v1.6.cpg +0 -0
  19. {anta_database-0.3.0 → anta_database-0.3.1}/anta_database/data/ANT_Basins_IMBIE2_v1.6.dbf +0 -0
  20. {anta_database-0.3.0 → anta_database-0.3.1}/anta_database/data/ANT_Basins_IMBIE2_v1.6.prj +0 -0
  21. {anta_database-0.3.0 → anta_database-0.3.1}/anta_database/data/ANT_Basins_IMBIE2_v1.6.shp +0 -0
  22. {anta_database-0.3.0 → anta_database-0.3.1}/anta_database/data/ANT_Basins_IMBIE2_v1.6.shx +0 -0
  23. {anta_database-0.3.0 → anta_database-0.3.1}/anta_database/data/GL.pkl +0 -0
  24. {anta_database-0.3.0 → anta_database-0.3.1}/anta_database/data/centeroid_coords_basins.cpg +0 -0
  25. {anta_database-0.3.0 → anta_database-0.3.1}/anta_database/data/centeroid_coords_basins.dbf +0 -0
  26. {anta_database-0.3.0 → anta_database-0.3.1}/anta_database/data/centeroid_coords_basins.prj +0 -0
  27. {anta_database-0.3.0 → anta_database-0.3.1}/anta_database/data/centeroid_coords_basins.shp +0 -0
  28. {anta_database-0.3.0 → anta_database-0.3.1}/anta_database/data/centeroid_coords_basins.shx +0 -0
  29. {anta_database-0.3.0 → anta_database-0.3.1}/anta_database/data/site-coords.pkl +0 -0
  30. {anta_database-0.3.0 → anta_database-0.3.1}/anta_database/database/__init__.py +0 -0
  31. {anta_database-0.3.0 → anta_database-0.3.1}/anta_database/figures/AntA_38ka.png +0 -0
  32. {anta_database-0.3.0 → anta_database-0.3.1}/anta_database/indexing/__init__.py +0 -0
  33. {anta_database-0.3.0 → anta_database-0.3.1}/anta_database/indexing/index_database.py +0 -0
  34. {anta_database-0.3.0 → anta_database-0.3.1}/anta_database/plotting/__init__.py +0 -0
  35. {anta_database-0.3.0 → anta_database-0.3.1}/anta_database.egg-info/SOURCES.txt +0 -0
  36. {anta_database-0.3.0 → anta_database-0.3.1}/anta_database.egg-info/dependency_links.txt +0 -0
  37. {anta_database-0.3.0 → anta_database-0.3.1}/anta_database.egg-info/top_level.txt +0 -0
  38. {anta_database-0.3.0 → anta_database-0.3.1}/book/_config.yml +0 -0
  39. {anta_database-0.3.0 → anta_database-0.3.1}/book/_toc.yml +0 -0
  40. {anta_database-0.3.0 → anta_database-0.3.1}/book/advanced.md +0 -0
  41. {anta_database-0.3.0 → anta_database-0.3.1}/book/contact.md +0 -0
  42. {anta_database-0.3.0 → anta_database-0.3.1}/book/contribute.md +0 -0
  43. {anta_database-0.3.0 → anta_database-0.3.1}/book/figures/Overview_all.png +0 -0
  44. {anta_database-0.3.0 → anta_database-0.3.1}/book/intro.md +0 -0
  45. {anta_database-0.3.0 → anta_database-0.3.1}/book/logo.png +0 -0
  46. {anta_database-0.3.0 → anta_database-0.3.1}/book/quick_start.ipynb +0 -0
  47. {anta_database-0.3.0 → anta_database-0.3.1}/book/references.bib +0 -0
  48. {anta_database-0.3.0 → anta_database-0.3.1}/book/requirements.txt +0 -0
  49. {anta_database-0.3.0 → anta_database-0.3.1}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: anta_database
3
- Version: 0.3.0
3
+ Version: 0.3.1
4
4
  Summary: SQLite database for the AntArchitecture Community Data
5
5
  Author: Antoine Hermant
6
6
  Author-email: antoine.hermant@etik.com
@@ -20,6 +20,7 @@ License-File: LICENSE
20
20
  Requires-Dist: pandas
21
21
  Requires-Dist: geopandas
22
22
  Requires-Dist: xarray
23
+ Requires-Dist: h5netcdf
23
24
  Requires-Dist: h5py
24
25
  Requires-Dist: pyproj
25
26
  Requires-Dist: scipy
@@ -759,7 +759,8 @@ class Database:
759
759
  df[int(age)] = ds[var][::downscale_factor, irh_index]
760
760
 
761
761
  else:
762
- df[var] = ds[var][::downscale_factor]
762
+ if var in ds.keys():
763
+ df[var] = ds[var][::downscale_factor]
763
764
 
764
765
  metadata = {
765
766
  'dataset': file_md['dataset'],
@@ -206,7 +206,7 @@ class Plotting:
206
206
  downscale_factor: Optional[int] = None,
207
207
  title: Optional[str] = None,
208
208
  xlim: tuple = (None, None),
209
- ylim: tuple = (3000, None),
209
+ ylim: tuple = (3500, 0),
210
210
  scale_factor: float = 1.0,
211
211
  marker_size: Optional[float] = 2,
212
212
  latex: bool = False,
@@ -576,14 +576,14 @@ class Plotting:
576
576
  # --- Format Figure ---
577
577
  print('Formatting ...')
578
578
 
579
- x0, x1 = ax.get_xlim() if xlim == (None, None) else xlim
580
- y0, y1 = ax.get_ylim() if ylim == (None, None) else ylim
581
- x_extent = x1 - x0
582
- y_extent = y1 - y0
583
- aspect_ratio = y_extent / x_extent
584
579
  ax.set_xlim(*xlim)
585
580
  ax.set_ylim(*ylim)
586
581
  if color_by != 'transect':
582
+ x0, x1 = ax.get_xlim() if xlim == (None, None) else xlim
583
+ y0, y1 = ax.get_ylim() if ylim == (None, None) else ylim
584
+ x_extent = x1 - x0
585
+ y_extent = y1 - y0
586
+ aspect_ratio = y_extent / x_extent
587
587
  ax.set_xlabel('x [km]')
588
588
  ax.set_ylabel('y [km]')
589
589
  ax.set_aspect('equal')
@@ -624,9 +624,10 @@ class Plotting:
624
624
  center_coords['x'] = center_coords['geometry'].x
625
625
  center_coords['y'] = center_coords['geometry'].y
626
626
  for x, y, sub in zip(center_coords['x'], center_coords['y'], center_coords['Subregion']):
627
- ax.text(x, y, sub, fontsize=12, color='k', ha='center',
628
- path_effects=[path_effects.withStroke(linewidth=5, foreground=(1,1,1,0.7))]
629
- )
627
+ if x0 <= x <= x1 and y0 <= y <= y1: # Only plot if within current view
628
+ ax.text(x, y, sub, fontsize=12, color='k', ha='center',
629
+ path_effects=[path_effects.withStroke(linewidth=5, foreground=(1,1,1,0.7))]
630
+ )
630
631
  # --- Plot ice core sites ---
631
632
  if stations and color_by != 'transect':
632
633
  site_coords = pd.read_pickle(self._site_coords_path)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: anta_database
3
- Version: 0.3.0
3
+ Version: 0.3.1
4
4
  Summary: SQLite database for the AntArchitecture Community Data
5
5
  Author: Antoine Hermant
6
6
  Author-email: antoine.hermant@etik.com
@@ -20,6 +20,7 @@ License-File: LICENSE
20
20
  Requires-Dist: pandas
21
21
  Requires-Dist: geopandas
22
22
  Requires-Dist: xarray
23
+ Requires-Dist: h5netcdf
23
24
  Requires-Dist: h5py
24
25
  Requires-Dist: pyproj
25
26
  Requires-Dist: scipy
@@ -1,6 +1,7 @@
1
1
  pandas
2
2
  geopandas
3
3
  xarray
4
+ h5netcdf
4
5
  h5py
5
6
  pyproj
6
7
  scipy
@@ -18,6 +18,7 @@ dependencies = [
18
18
  "pandas",
19
19
  "geopandas",
20
20
  "xarray",
21
+ "h5netcdf",
21
22
  "h5py",
22
23
  "pyproj",
23
24
  "scipy",
File without changes
File without changes
File without changes
File without changes
File without changes