Skip to content

Commit

Permalink
Updates docs + fixed bug in helper function converting readme into do…
Browse files Browse the repository at this point in the history
…cs sections
  • Loading branch information
VChristiaens committed Mar 28, 2022
1 parent 5d3145c commit 36f26d8
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
11 changes: 11 additions & 0 deletions docs/source/Image-conventions.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
Image conventions
-----------------

By default, VIP routines are compatible with either even- or odd-dimension input frames. For VIP routines that require the star to be centered in the input images (e.g. post-processing routines involving (de)rotation or scaling), the code will assume that it is placed on (zero-based indexing):

- size/2-0.5 for odd-size input images;
- size/2 for even-size input images;

i.e. exactly on a pixel in either cases. The VIP recentering routines will place the star centroid at one of these locations accordingly.


2 changes: 1 addition & 1 deletion helpers/update_docs_rst_from_README.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
if occ > titles_occ[i]:
f_i.write(line)
start_write=True
elif str_titles[i+1] in line:
elif str_titles[i+1] in line and occ > titles_occ[i]:
stop_write=True
else:
continue
Expand Down

0 comments on commit 36f26d8

Please sign in to comment.