Skip to content

Commit 389e69f

Browse files
authored
Add bestDetector, update documentation (#28)
* Update for bestdetector * Update test data
1 parent 91230d6 commit 389e69f

File tree

4 files changed

+36
-9
lines changed

4 files changed

+36
-9
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
.idea
2+
.DS_Store
23

34
# Byte-compiled / optimized / DLL files
45
__pycache__/

README.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ API interactions for WINTER
66
[![PyPI version](https://badge.fury.io/py/winterapi.svg)](https://badge.fury.io/py/winterapi)
77

88
## Installation
9+
10+
We advise you to install the package in a virtual environment or conda environment.
11+
You will need python 3.10 or later to use this package.
12+
913
### Install from pypi
1014
```bash
1115
pip install winterapi
@@ -18,3 +22,25 @@ cd winterapi
1822
pip install --editable ".[dev]"
1923
pre-commit install
2024
```
25+
26+
## Updating the package
27+
28+
You will need to occasionally update the package to get the latest features and bug fixes.
29+
Sometimes the server will require a newer version of the package to interact with it,
30+
and you will receive a warning when using winterapi.
31+
You can update by running the following command:
32+
33+
### Updating for pypi
34+
```bash
35+
pip install --upgrade winterapi
36+
```
37+
38+
or
39+
40+
### Updating from source
41+
```bash
42+
cd winterapi
43+
git pull
44+
pip install --editable ".[dev]"
45+
pre-commit install
46+
```

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
44

55
[project]
66
name = "winterapi"
7-
version = "1.0.0"
7+
version = "1.1.0"
88
description = ""
99
authors = [
1010
{name = "Robert Stein", email = "rdstein@caltech.edu"}
@@ -36,7 +36,7 @@ dependencies = [
3636
"jupyter",
3737
"backoff",
3838
"pydantic",
39-
"wintertoo>=1.2.0"
39+
"wintertoo>=1.3.1"
4040
]
4141
[project.optional-dependencies]
4242
dev = [

tests/testdata/test_schedule.csv

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
targName,raDeg,decDeg,fieldID,filter,visitExpTime,priority,progPI,progName,progID,validStart,validStop,observed,maxAirmass,ditherNumber,ditherStepSize,obsHistID
2-
test_field,211.56398,54.0,3944,Y,30.0,50.0,Stein,2023A999,0,62721.1894969287,62722.1894969452,False,2.0,9,30.0,0
3-
test_field,211.56398,54.0,3944,J,30.0,50.0,Stein,2023A999,0,62721.1894969287,62722.1894969452,False,2.0,9,30.0,1
4-
test_field,211.56398,54.0,3944,Hs,30.0,50.0,Stein,2023A999,0,62721.1894969287,62722.1894969452,False,2.0,9,30.0,2
5-
test_radec,210.910674637,54.3116510708,999999999,Y,30.0,50.0,Stein,2023A999,0,62721.1894969287,62722.1894969452,False,2.0,1,30.0,3
6-
test_radec,210.910674637,54.3116510708,999999999,J,30.0,50.0,Stein,2023A999,0,62721.1894969287,62722.1894969452,False,2.0,1,30.0,4
7-
test_radec,210.910674637,54.3116510708,999999999,Hs,30.0,50.0,Stein,2023A999,0,62721.1894969287,62722.1894969452,False,2.0,1,30.0,5
1+
targName,raDeg,decDeg,fieldID,filter,visitExpTime,priority,progPI,progName,progID,validStart,validStop,observed,maxAirmass,ditherNumber,ditherStepSize,bestDetector,obsHistID
2+
test_field,211.56398,54.0,3944,Y,30.0,50.0,Stein,2023A999,0,62721.1894969287,62722.1894969452,False,2.0,9,30.0,True,0
3+
test_field,211.56398,54.0,3944,J,30.0,50.0,Stein,2023A999,0,62721.1894969287,62722.1894969452,False,2.0,9,30.0,True,1
4+
test_field,211.56398,54.0,3944,Hs,30.0,50.0,Stein,2023A999,0,62721.1894969287,62722.1894969452,False,2.0,9,30.0,True,2
5+
test_radec,210.910674637,54.3116510708,999999999,Y,30.0,50.0,Stein,2023A999,0,62721.1894969287,62722.1894969452,False,2.0,1,30.0,True,3
6+
test_radec,210.910674637,54.3116510708,999999999,J,30.0,50.0,Stein,2023A999,0,62721.1894969287,62722.1894969452,False,2.0,1,30.0,True,4
7+
test_radec,210.910674637,54.3116510708,999999999,Hs,30.0,50.0,Stein,2023A999,0,62721.1894969287,62722.1894969452,False,2.0,1,30.0,True,5

0 commit comments

Comments
 (0)