Code Monkey home page Code Monkey logo

ldtobservertools's People

Contributors

tbowers7 avatar

Stargazers

 avatar

Watchers

 avatar

ldtobservertools's Issues

joinpath error in scrub_deveny_pickup

Hello,

I'm getting the following error when running scrub_deveny_pickup. This is using a conda environment installed following the instructions on the obstools readthedocs page:

(obstools) $ scrub_deveny_pickup --proc_dir ../pypeit_1.14.0/Science/ -d *

Processing frame 20231110.0002.fits
Traceback (most recent call last):
File "/opt/miniconda3/envs/obstools/bin/scrub_deveny_pickup", line 8, in
sys.exit(ScrubDevenyPickup.entry_point())
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/miniconda3/envs/obstools/lib/python3.11/site-packages/obstools/utils.py", line 612, in entry_point
sys.exit(cls.main(args))
^^^^^^^^^^^^^^
File "/opt/miniconda3/envs/obstools/lib/python3.11/site-packages/obstools/scrub_deveny_pickup.py", line 1684, in main
iterative_pypeit_clean(
File "/opt/miniconda3/envs/obstools/lib/python3.11/site-packages/obstools/scrub_deveny_pickup.py", line 134, in iterative_pypeit_clean
spec2d_file = [
^
File "/opt/miniconda3/envs/obstools/lib/python3.11/site-packages/obstools/scrub_deveny_pickup.py", line 135, in
next(d.joinpath("Science").glob(f"spec2d_{filename.stem}-*.fits"))
^^^^^^^^^^
AttributeError: 'str' object has no attribute 'joinpath'

Add GUI for the LMI Exposure Time Calculator

The ETC code was ported to python from PHP, and exists in obstools/etc_calc.py. At present, this module only contains the computation functions, but no UI. It would be helpful to create a GUI that replicates the user experience of Phil's PHP page.

Create a python port of the Observer Target List tool

The Observer Target List tool is an Eclipse RCP application that lives on dct-obs1 and dct-obs2.

Possibly using pyqt, create a python port of this tool. The source for the RCP application lives in the svn repo on jumar.

In particular, in the new port, allow for the deletion of objects from the loaded target list. This is an observer request for ease of use during a night.

ValueError in scrub_deveny_pickup

I get the following error when running scrub_deveny_pickup:

Processing frame 20231110.0090.fits
--> FFT-predicted pixel period: 157.2 pix

  • No object model extracted. Moving along...
    Fitting sinusoids to each line in the image...
    100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 508/508 [09:04<00:00, 1.07s/row]
    --> Mean fit pixel period: 157.8 pix
    Refitting lines with poor fit in first pass...
    0%| | 0/453 [00:00<?, ?row/s]Traceback (most recent call last):
    File "/opt/miniconda3/envs/obstools/bin/scrub_deveny_pickup", line 8, in
    sys.exit(ScrubDevenyPickup.entry_point())
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    File "/opt/miniconda3/envs/obstools/lib/python3.11/site-packages/obstools/utils.py", line 537, in entry_point
    sys.exit(cls.main(args))
    ^^^^^^^^^^^^^^
    File "/opt/miniconda3/envs/obstools/lib/python3.11/site-packages/obstools/scrub_deveny_pickup.py", line 1684, in main
    iterative_pypeit_clean(
    File "/opt/miniconda3/envs/obstools/lib/python3.11/site-packages/obstools/scrub_deveny_pickup.py", line 221, in iterative_pypeit_clean
    resid_fitc = fit_lines(
    ^^^^^^^^^^
    File "/opt/miniconda3/envs/obstools/lib/python3.11/site-packages/obstools/scrub_deveny_pickup.py", line 733, in fit_lines
    closest_idx = ind_goodrms[np.argmin(np.abs(img_row - ind_goodrms))]
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    File "/opt/miniconda3/envs/obstools/lib/python3.11/site-packages/numpy/core/fromnumeric.py", line 1325, in argmin
    return _wrapfunc(a, 'argmin', axis=axis, out=out, **kwds)
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    File "/opt/miniconda3/envs/obstools/lib/python3.11/site-packages/numpy/core/fromnumeric.py", line 59, in _wrapfunc
    return bound(*args, **kwds)
    ^^^^^^^^^^^^^^^^^^^^
    ValueError: attempt to get argmin of an empty sequence
    0%| | 0/453 [00:00<?, ?row/s]

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.