Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
4e70fbe
Minor format change
wei-lingfeng Sep 10, 2025
94f72a0
Merge branch 'mm_rework' of https://github.com/MovingUniverseLab/flys…
wei-lingfeng Sep 10, 2025
243b56f
Remove 2-epoch linear fitting as scipy/matrix already handles it; Fix…
wei-lingfeng Sep 17, 2025
1385464
Add testing function for both absolute_sigma True and False
wei-lingfeng Sep 17, 2025
d7884e8
Simple cleanup
wei-lingfeng Sep 17, 2025
dabd8a2
Merge branch 'mm_rework' of https://github.com/MovingUniverseLab/flys…
wei-lingfeng Sep 17, 2025
200d7e7
Revert 2 epoch case changes
wei-lingfeng Sep 17, 2025
5a859db
Fix r string import warning
wei-lingfeng Sep 25, 2025
253c52d
Clean up: Remove scale_errors; Update init functions; Update Linear m…
wei-lingfeng Nov 7, 2025
0ba32c9
Rename py to plt; Add save path; Fix unclosed figure
wei-lingfeng Nov 7, 2025
f0e478c
Minor fix: Add assertion message; Add times into ref_table meta data;…
wei-lingfeng Nov 7, 2025
7b01003
Minor fix: Update startables accordingly with motion model
wei-lingfeng Nov 7, 2025
289150d
Revert class meta definitions
wei-lingfeng Nov 7, 2025
a9adeee
Merge branch 'mm_rework' of https://github.com/MovingUniverseLab/flys…
wei-lingfeng Nov 7, 2025
443c4bd
Add get_sigma
wei-lingfeng Nov 12, 2025
a1ef471
Revert back to get_weight
wei-lingfeng Nov 12, 2025
1a7481d
Major Update:
wei-lingfeng Nov 13, 2025
77820b2
Rewrite startable fit velocity function for acceleration and the new …
wei-lingfeng Nov 13, 2025
043cdf1
Add support for motion_model_input
wei-lingfeng Nov 17, 2025
5ec18cb
Passed testing for fit_motion_model. Merged get_pos_at_time and get_b…
wei-lingfeng Nov 21, 2025
d892a36
Merge branch 'mm_rework' of https://github.com/MovingUniverseLab/flys…
wei-lingfeng Nov 21, 2025
e0e0c2c
MotionModel acceleration with passed testings. Merged get_pos_at_time…
wei-lingfeng Nov 25, 2025
f932e23
Add Parallax test plot
wei-lingfeng Dec 10, 2025
be25492
Partial Update of align and test_align
wei-lingfeng Dec 15, 2025
a19b106
Passed startable tests; Accelerated imports with relative import
wei-lingfeng Dec 16, 2025
48321cb
Resolve undefined variables and cleaned imports
wei-lingfeng Dec 16, 2025
dc369e6
Merge local changes with decaf changes
wei-lingfeng Dec 16, 2025
f0e8884
Fix bootstrap sampling strategy and 100% passed startable test
wei-lingfeng Dec 16, 2025
a1ff8f3
Midway save of align
wei-lingfeng Dec 20, 2025
04fd8ea
Add select_stars functionality in fit_motion_model
wei-lingfeng Dec 20, 2025
87d7cc4
Passed all tests!
wei-lingfeng Dec 21, 2025
a685011
Merge with upstream mm_rework branch
wei-lingfeng Dec 21, 2025
99f678a
Removed old functions; Merged with upstream mm_rework branch
wei-lingfeng Dec 21, 2025
f75a55f
Added Motion Model Example Notebook; Revert Acceleration Velocity Names
wei-lingfeng Dec 22, 2025
5a049fe
Fix bootstrap index size error
wei-lingfeng Jan 15, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1,363 changes: 1,363 additions & 0 deletions docs/flystar/examples/motion_model_example.ipynb

Large diffs are not rendered by default.

433 changes: 248 additions & 185 deletions flystar/align.py

Large diffs are not rendered by default.

11 changes: 3 additions & 8 deletions flystar/analysis.py
Original file line number Diff line number Diff line change
@@ -1,17 +1,11 @@
import numpy as np
import pylab as plt
from flystar import starlists
from flystar import startables
from flystar import align
from flystar import match
from flystar import transforms
from . import starlists, match
from astropy import table
from astropy.table import Table, Column
from astropy.coordinates import SkyCoord
from astropy import units as u
from astropy.wcs import WCS
from astroquery.gaia import Gaia
from astroquery.mast import Observations, Catalogs
import pdb, copy
import math
from scipy.stats import f
Expand Down Expand Up @@ -42,14 +36,15 @@ def query_gaia(ra, dec, search_radius=30.0, table_name='gaiadr3'):
table_name : string
Options are 'gaiadr2' or 'gaiaedr3'
"""
from astroquery.gaia import Gaia
target_coords = SkyCoord(ra, dec, unit=(u.hourangle, u.deg), frame='icrs')
ra = target_coords.ra.degree
dec = target_coords.dec.degree

search_radius *= u.arcsec

Gaia.ROW_LIMIT = 50000
gaia_job = Gaia.cone_search_async(target_coords, search_radius, table_name = table_name + '.gaia_source')
gaia_job = Gaia.cone_search_async(target_coords, radius=search_radius, table_name=table_name + '.gaia_source')
gaia = gaia_job.get_results()

#Change new 'SOURCE_ID' column header back to lowercase 'source_id' so all subsequent functions still work:
Expand Down
10 changes: 2 additions & 8 deletions flystar/examples.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,5 @@
from flystar import transforms
from flystar import match
from flystar import align
from flystar import starlists
from flystar import plots
import numpy as np
import copy
import pdb
from . import transforms, match, align, starlists, plots


def align_example(labelFile, reference, transModel=transforms.four_paramNW, order=1, N_loop=2,
Expand Down Expand Up @@ -83,7 +77,7 @@ def align_example(labelFile, reference, transModel=transforms.four_paramNW, orde

trans, N_trans = align.find_transform(label[idx_label],
label_trans[idx_label],
starlist_mat[idx_starlist],
starlist[idx_starlist],
transModel=transModel,
order=order, weights=weights)

Expand Down
9 changes: 3 additions & 6 deletions flystar/match.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,10 @@
import numpy as np
from flystar import starlists, transforms, startables, align
from . import starlists, transforms, startables
from collections import Counter
from scipy.spatial import cKDTree as KDT
from astropy.table import Column, Table
from astropy.table import Column
import itertools
import copy
import scipy.signal
from scipy.spatial import distance
import math
import pdb


def miracle_match_briteN(xin1, yin1, min1, xin2, yin2, min2, Nbrite,
Expand Down Expand Up @@ -526,6 +522,7 @@ def generic_match(sl1, sl2, init_mode='triangle',
Startable of the two matched catalogs

"""
from . import align

# Check the input StarLists and transform them into astropy Tables
if not isinstance(sl1, starlists.StarList):
Expand Down
Loading