SkyMapMod 0.0.23__tar.gz → 0.1.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.
@@ -1,6 +1,7 @@
1
- Metadata-Version: 2.3
1
+ Metadata-Version: 2.4
2
2
  Name: SkyMapMod
3
- Version: 0.0.23
3
+ Version: 0.1.2
4
+ Summary: for modeling
4
5
  Project-URL: Homepage, https://istina.msu.ru/profile/aminevann/
5
6
  Author-email: Anna Amineva <amineva.2219@physics.msu.ru>
6
7
  License-File: LICENSE
@@ -4,11 +4,11 @@ build-backend = "hatchling.build"
4
4
 
5
5
  [project]
6
6
  name = "SkyMapMod"
7
- version = "0.0.23"
7
+ version = "0.1.2"
8
8
  authors = [
9
9
  { name="Anna Amineva", email="amineva.2219@physics.msu.ru" },
10
10
  ]
11
- description = ""
11
+ description = "for modeling"
12
12
  readme = "README.md"
13
13
  requires-python = ">=3.10.0"
14
14
  classifiers = [
@@ -18,4 +18,5 @@ classifiers = [
18
18
  ]
19
19
 
20
20
  [project.urls]
21
- Homepage = "https://istina.msu.ru/profile/aminevann/"
21
+ Homepage = "https://istina.msu.ru/profile/aminevann/"
22
+
@@ -0,0 +1,3 @@
1
+ from .load_data import load_star_temperatures
2
+
3
+ __all__ = ['load_star_temperatures']
@@ -0,0 +1,15 @@
1
+ import numpy as np
2
+ import os
3
+ from pathlib import Path
4
+
5
+ def load_star_temperatures():
6
+ # Определяем путь к файлу данных
7
+ data_dir = Path(__file__).parent
8
+ file_path = data_dir / "star_temperatures.npy"
9
+
10
+ # Проверяем, существует ли файл
11
+ if not file_path.exists():
12
+ raise FileNotFoundError(f"Файл данных не найден: {file_path}")
13
+
14
+ # Загружаем данные
15
+ return np.load(file_path)
@@ -0,0 +1,14 @@
1
+ import numpy as np
2
+
3
+ from .data.load_data import load_star_temperatures
4
+
5
+ def print_temperature():
6
+ """
7
+ Пример функции, использующей массив температур звезд.
8
+ """
9
+ # Загружаем данные
10
+ star_temperatures = load_star_temperatures()
11
+
12
+ # Пример обработки данных
13
+ print("Массив успешно загружен. Размер:", star_temperatures.shape)
14
+ print(star_temperatures[811][3128])
File without changes
File without changes