Git Product home page Git Product logo

Comments (6)

kdere avatar kdere commented on August 20, 2024

As it is, is is useful for just quickly trying to find what temperature produces the maximum Gofnt for a line or 2 that you know.
When I try to interpret a set of line intensities, I associate the observed intensities with the ion.Intensity dict by way of closest wavelength. However, how to do this is not obvious to the user. I need to see exactly what the user is getting in .Intensity vs Gofnt

So, I would say keep gofnt as it is, or rename it, and find a way to either document how to associate contribution function with a given set of lines.

from chiantipy.

wtbarnes avatar wtbarnes commented on August 20, 2024

In general, I think the focus should be on returning as much information as possible to the user. As it stands now, the user is only returned a small number of lines and the need to pick lines in the GUI (or CLI) and then plot the gofnt makes non-interactive use of this method difficult.

Provided the user is returned the emissivity array and the associated wavelengths, it should be very simple (e.g. using np.sort and/or np.where) to find the top lines. We could include an example of this in the docstring.

In summary, three suggestions for overall improvement of this method:

  1. Remove wavelength range selection. This does not save time and again can easily be done by the user.
  2. Remove all plotting and GUI/CLI selections
  3. Add example in the docstring for selecting top lines based on emissivity values

I'm willing to take care of these changes.

from chiantipy.

kdere avatar kdere commented on August 20, 2024

I think we should add an additonal method such as gofntAll or something like that that does what you say. I would like to keep the current gofnt, we could rename it something like gofntInteract but I find it very useful.

from chiantipy.

wtbarnes avatar wtbarnes commented on August 20, 2024

I wonder if it might make more sense to place all of the interactive functionality in ion in a separate class, e.g. ionInteract (or something like that).

This would mean removing all plotting commands and anything that involves a selection dialog.

from chiantipy.

kdere avatar kdere commented on August 20, 2024

I would prefer to keep it all in ion. There really are not all that many interactive methods and I would rather just have one main import.

from chiantipy.

kdere avatar kdere commented on August 20, 2024

I think the .intensity method provides everything you need for the gofnt of all or a set of lines from a given ion. It is just not called that.

from chiantipy.

Related Issues (20)

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.