Git Product home page Git Product logo

pyssn's People

Contributors

morisset avatar mvfcopetti avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

pyssn's Issues

cosmetik False fails

fic_cosmetik = ''
do_cosmetik = False

Lead to the following when editing a line :

File "/home/morisset/anaconda2/lib/python2.7/site-packages/pyssn/qt/pyssn_qt.py", line 1220, in on_doubleClick
self.show_line_info_dialog()
File "/home/morisset/anaconda2/lib/python2.7/site-packages/pyssn/qt/pyssn_qt.py", line 1198, in show_line_info_dialog
fill_line_info_table()
File "/home/morisset/anaconda2/lib/python2.7/site-packages/pyssn/qt/pyssn_qt.py", line 1049, in fill_line_info_table
line = self.sp.read_line(self.sp.fic_cosmetik, int(line_num))
File "/home/morisset/anaconda2/lib/python2.7/site-packages/pyssn/core/spectrum.py", line 1143, in read_line
with open(filename, 'r') as f:

Adding an editing box for the instrumental profile

The instrumental profile is now accessible via the variable "prof" in the parameters (may be changed to "instr_prof"?) AND by reading a file named via the "fic_instr_prof" variable.
This is confusing. Better do the same than for the continuum: adding some editing popup window that allows to change the 17 parameters, perhaps in the form:

'HWHM Gauss': [one box for the value]
1 (Bl, Br, decreasing, alpha) : [one box for 4 values]
2 (Bl, Br, decreasing, alpha) : [one box for 4 values]
3 (Bl, Br, decreasing, alpha) : [one box for 4 values]
4 (Bl, Br, decreasing, alpha) : [one box for 4 values]

The values would be saved with the save_parameters facility, and no more need for the fic_instr_prof file.

Check velocity for profiles

It seems that there is hard coded a value of 20 for profile number 1. But it is 1.0 in the default profile file.

Adding a comment (lambda dependent?) that would be stored in the init file

It could be useful to have a variable that could be edited from the pySSN GUI to store some comments. It may even includes a lambda that would appear on the synthesis (red diamond for example) to inform the user that there is a comment related to this wavelength.
Something like:
comments = (
(4363.0, """ This line is not well fitted because of ....."""),
(7600, """ We have problems here with the atmospheric absorption""")
)

user-defined continuum using 2-values

In the init file, change the user-defined continuum from :
cont_intens = (1.0, 2.0, 1.0)
cont_lambda = (4000, 5000, 6000)
into:
cont_lambda_intens = ((4000, 1.0), (5000, 2.0), (6000, 1.0))

Different velocity for atmospheric lines

It seems that at some stage an extra file was used to put the atmospheric lines, with a different value for the velocity.
Check if this is still actual, and if yes, see how to generate this file from the pySSN_write files facility.

Add default line profiles number to liste_model

Modify the pySSN_model:
The liste_model file should contain different profile numbers for each line, based on IPs.
These numbers may not correspond to an entry in the profile file, in this case profile number 1 is used.
Difference may apply between Rec and Coll lines.

Helping user with default files

We need to provide the user with default files for starting a synthesis.
The files are:

  • some init file (an example is given on the manual page, do we want a file to be generated automatically)
  • list_phyat (already done)
  • list_model (already done)
  • list_kosmetic (is it generated when the user change a value that needs to be stored as kosmetic?)
  • the line profile file. It must be filled with the '1' profile.
  • the instrument profile (but see issue where we suggest removing this file to only have the instrumental profile defined in the init file)

python 3 compatibility

File "/Users/christophemorisset/anaconda/envs/py3k5qt4/lib/python3.5/site-packages/pyssn/qt/pyssn_qt.py", line 681, in create_menu
s = s + ' ' + str(i) + ' - ' + items[i] + '\n'
TypeError: 'odict_values' object does not support indexing

Atmospheric lines velocity

There is no easy waynto define a velocity for all the atmospheric lines.
Perhaps use the ID code to identify them and apply a V_ Earth?

log.dat and help.dat

We have to think of a way to NOT loose the previous information stored in log and help.dat files.
Perhaps just add at the end of log.dat the new information without removing the one already there.

Thermal profile bugs

It seems that the temperature is not used to compute the line profile. If V is very small, the profile is close to Dirac, not to thermal width.

qt_style should not be saved?

being qt_style machine dependent, it should not been saved, as it will avoid transmission from one user to another one.

nearby line window calling wrong ion

Select a wavelength range that includes 4959 and 5007.
In the popup window of the nearby lines, click on the [OIII]5007 line ID (8033400004003): it opens the OIII line info dialog. That's OK.
But click on the [OIII]4959 line ID (8033400004002), it opens the ArIII line info dialog!

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.