Skip to content

Conversation

@jammont
Copy link
Collaborator

@jammont jammont commented Mar 6, 2025

WIP textual app

To use:

  • Install the additional packages via pip install -e ".[term]"
  • Hardcode LOG and RFL variables at the top of the file
    • LOG is an apply_oe log
    • RFL is one of the output/*rfl* files
  • Execute the isoplots/terminal/isofit.py script from within the isoplots/terminal directory

RFL is very experimental and may not work. Also has a tendency to slow the app down significantly. The image that gets drawn is the greyscale reflection average over all bands.

  • If it's working, the 1, 2, and 3 keys will switch between the three plots for drawing reflection spectra.

TODOs

  • Add input box for both LOG and RFL
  • Fix RFL plotting for any image size
  • More features

@jammont jammont changed the title Textual Terminal GUI Mar 24, 2025
@brentwilder
Copy link

Hi James, I tested the terminal GUI this afternoon and got the following message saying, "ValueError: cannot convert float NaN to integer". I'm not sure if this is related to handling of nan in Line 473 / rgb is cast to int , or if this an image specific issue (image used was emit20230220T194114_rfl). Not sure if this of any help but just wanted to let you know!

Screenshot 2025-03-28 at 17 45 25

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants