1
0
forked from erosita/uds

pip install editable

This commit is contained in:
Roman Krivonos 2023-02-15 13:23:25 +03:00
parent 03a9b4bf62
commit 688e678995
14 changed files with 44 additions and 11 deletions

3
.gitignore vendored
View File

@ -1,3 +1,4 @@
*~
*#
.#*
.#*
*.fits

View File

@ -4,24 +4,27 @@
# Установка
## (опционально) Устанавливаем локальное виртуальное окружение Python
## Шаг 1. (опционально) Устанавливаем локальное виртуальное окружение Python
```
mkdir ~/work
cd ~/work
mkdir ~/work; cd ~/work
python -m venv venv
activate
source ./venv/bin/activate.csh
```
или запускаем другое виртуальное окружение, например:
``` conda activate ciao-4.15 ```
После клонирования проекта из репозитория, например:
mkdir ~/work
cd ~/work
## Шаг 2. Клонируем проект из репозитория
```
mkdir ~/work; cd ~/work
git clone git@danko.iki.rssi.ru:erosita/uds.git
cd uds
```
## Шаг 3. Устанавливаем проект в ваше виртуальное окружение
``` pip install uds ```
После работы можете удалить проект:
``` pip uninstall uds ```
Надо добавить в ваше виртуальное окружение (предполагается, что оно у вас установлено, например так: python -m venv )
Работа начинается со списка событий, расположенных в директории

View File

@ -16,3 +16,4 @@ evtool eventfiles=@./tm6_img_scan3.txt gti='620227904. 620242176.' outfile=./tm6
"""
print("WORK {}".format(work_dir))
printme()

View File

@ -5,4 +5,5 @@ setup(name="uds",
description='eROSITA UDS field analysis',
author='Roman Krivonos',
author_email='krivonos@cosmos.ru',
url='https://www.srg.cosmos.ru',)
url='https://www.srg.cosmos.ru',
packages=find_packages())

12
uds/uds.egg-info/PKG-INFO Normal file
View File

@ -0,0 +1,12 @@
Metadata-Version: 2.1
Name: uds
Version: 0.1
Summary: eROSITA UDS field analysis
Home-page: https://www.srg.cosmos.ru
Author: Roman Krivonos
Author-email: krivonos@cosmos.ru
License: UNKNOWN
Platform: UNKNOWN
UNKNOWN

View File

@ -0,0 +1,8 @@
setup.py
uds/__init__.py
uds/config.py
uds/utils.py
uds.egg-info/PKG-INFO
uds.egg-info/SOURCES.txt
uds.egg-info/dependency_links.txt
uds.egg-info/top_level.txt

View File

@ -0,0 +1 @@

View File

@ -0,0 +1 @@
uds

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -1,5 +1,7 @@
from pathlib import Path
work_dir = Path('/path/to/some/logical/parent/dir')
"""
Координаты сентрального кадра, к которому будут
приводиться изображения всех списков событий

View File

@ -19,6 +19,9 @@ from astropy.coordinates import Angle, Latitude, Longitude # Angles
import statistics
import shutil
def printme():
print("hellow world FFF ASAA")
def create_folder(folder):
if not (os.path.exists(folder)):
os.makedirs(folder)