Giter Site home page Giter Site logo

hitranonline / hapiest Goto Github PK

View Code? Open in Web Editor NEW
30.0 30.0 9.0 34.65 MB

A GUI frontend which allows manipulation and processing of data from the HITRAN database.

Home Page: http://hitran.org/

License: Other

Python 99.71% JavaScript 0.03% Shell 0.02% HTML 0.24%

hapiest's People

Contributors

benjicaro avatar birstinger avatar jkarns275 avatar romankochanov avatar whyitmatt avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

hapiest's Issues

Error Encountered

I installed Hapiest on my windows 10. Every time I run, this error comes up and the program gets stuck. I need your help, and thank you very much!

Done initializing hapi db...
Encountered an error:
'MoleculeMeta' object has no attribute 'id'
Traceback (most recent call last):
File "src/main.py", line 19, in
sys.exit(run())
File "D:\HITEMP\hapiest\src\app.py", line 141, in run
window = MainWindow()
File "D:\HITEMP\hapiest\src\windows\main_window.py", line 8, in init
Window.init(self, MainWindowWidget(self), None)
File "D:\HITEMP\hapiest\src\widgets\main_window_widget.py", line 91, in init
self.cross_section_fetch_widget = CrossSectionFetchWidget(self)
File "D:\HITEMP\hapiest\src\widgets\cross_section_fetch_widget.py", line 72, in init
self.molecule.addItems(CrossSectionMeta.all_names_sorted_by_hitran_id())
File "D:\HITEMP\hapiest\src\metadata\xsc_meta.py", line 68, in all_names_sorted_by_hitran_id
return list(map(lambda m: m.name, sorted(molecules, key=lambda m: m.id)))
File "D:\HITEMP\hapiest\src\metadata\xsc_meta.py", line 68, in
return list(map(lambda m: m.name, sorted(molecules, key=lambda m: m.id)))
AttributeError: 'MoleculeMeta' object has no attribute 'id'

Fetching is very slow

On my machine fetching is extremely slow - a small fetch of about ~2MB can take anywhere from 30s to a minute. Can anyone else confirm?

Choosing too small Wavenumber Step crashes the program

Hi everyone,

after fetching some date in the line-by-line tab, I tried to plot in the Graphing tab. If you set the Graph Type to Transmitance Spectrum and then tick the Wavenumber Step (cm^{-1}), the program crashes with the error

[Err]  Wavenumber Step must be less than Instrumental Resolution
Traceback (most recent call last):
  File "/media/sf_vm_share/hapiest/src/widgets/graphing/graphing_widget.py", line 178, in graph
    self.graph_ts(standard_params)
  File "/media/sf_vm_share/hapiest/src/widgets/graphing/graphing_widget.py", line 287, in graph_ts
    self.data_name_error.setText(
AttributeError: 'NoneType' object has no attribute 'setText'
Aborted (core dumped)

While the first line, i.e. [Err] Wavenumber Step must be less than Instrumental Resolution, indicates that this error occured due to bad user input, crashing the program seems like bad handling of the exception.

Absorption Coefficient Window

Threshold is spelled incorrectly ("Threshhold") on the label for Intensity Threshold

(Also is Halfwidth spelled correctly? I don't know what that is)

There is a problem with setting the Diluent parameter

When I set the Diluent parameter Diluent={'self':1., 'air': 0.}, the linewidth is broder than the parameter Diluent={'self':0.1, 'air': 0.9}. The other key parameters are Environment={'p': 0.1, 'T': 296.}, gastype='H2O', Conditions=('between', 'nu', 9204, 9210). It is Contrary to reality.

Module imports aren't robust

Module imports only work when the program is started with the command 'python src/main.py', and does not work with 'python src'

SyntaxError

Sorry, I have never programmed with python, so I have no idea what's wrong...

./run
Traceback (most recent call last):
  File "src/__main__.py", line 12, in <module>
    from windows.main_window import *
  File "hapiest/hapiest-master/src/windows/main_window.py", line 15
    self.gui: 'MainWindowGui' = MainWindowGui(self)
            ^
SyntaxError: invalid syntax

This is Python 3.5.2 (default, Nov 23 2017, 16:37:01) [GCC 5.4.0 20160609] on linux

Typing in a wavenum min and max is almost impossible

Instead of automatically changing the number if min > max, just add a marker (like a red X or squiggly line or something) if the values are invalid, then if the user tries to fetch with invalid values, instead of fetching, just tell them their values are invalid

can't plot absorption coefficient, transmission, absorption,cross sections

I'm using osx 14.6 with Python 3.7.7 that includes pip 20.2.2 that includes numpy 1.19.0 . I am able to plot bands, but when I attempt to plot the other quantities I receive the following

File "/usr/local/lib/python3.7/site-packages/numpy/core/function_base.py", line 113, in linspace
|       num = operator.index(num)
|   
|   'numpy.float64' object cannot be interpreted as an integer

Error executing work request: 'numpy.float64' object cannot be interpreted as an integer <class 'TypeError'> None

A similar error occurs using HAPI.

Its difficult to use python 3.6 as pip for that version is not compatible with openssl 1.1. Going back to openssl 1.0 causes other issues.

Thus, is there a way to modify hapiest to get around this issue?

About Tab

About Tab text spacing is funky. Smells like Jazz music.

Hapiest crashes when editing cross-sections filter

No cross section filters can be applied because the program crashes. Last lines in terminal read:

WARNING: Traceback (most recent call last):
File "src/widgets/cross_section_fetch_widget.py", line 110, in __on_apply_filters_clicked
self.set_cross_section_list_items(xsc_filter.get_cross_sections())
File "src/data_structures/xsc.py", line 74, in get_cross_sections
if self.molecule_id not in CrossSectionMeta.molecule_metas:
AttributeError: type object 'CrossSectionMeta' has no attribute 'molecule_metas'
Abort trap: 6

Am I just not doing something correctly?

Fetch Window Resizing

Fetch Window Isotopologues, Parameter Groups, and Parameters not resizing with window.

Viewing bands with a log y-axis is buggy

It seems as if the range of the axis doesn't change even when the view selection is changed using the rubber band feature. It appears as if the upper limit in particular does not change.

It appears to be a bug with QtChart.

Graph interactivity is extremely limited

  • Should be able to click on the graph, and highlight a coordinate.
  • Should be able to export images without having to take a screenshot
  • Should be able to zoom and pan with the mouse in a more traditional sense (clicking and dragging and a zoom button)

hapiest doesn't want to start

I wanted to start happiest on my PC Windows 10, before I did download the last version of Anaconda3. When I try to start happiest by double clicking the happiest.bat I open a command prompt window which asks for the api key which I gave. The batch file will be closed and I tried to restart by using the batch file I get an error ---------------------------
hapiest.exe - Bad Image

C:\Work_Tantronic\hapi\bin\python36.dll is either not designed to run on Windows or it contains an error. Try installing the program again using the original installation media or contact your system administrator or the software vendor for support. Error status 0xc000007b.

OK

May I ask you to help me, thank you in advance.
Best Ken

Hapiest does not recognize internet connection.

I am trying to run hapiest, I couldn't get it to run by doing the bash command, I had to try to run the hapiest.exe itself. I am doing all of this on a mac.

When I did this, it opened up a prompt to enter my api key, which I did. Then when it tries to run I get a box that says "You do not have a working internet connection. You need to have a working internet connection in order to use hapiest."

I do have an internet connection. Why would this error occur?

I have basically no python or coding knowledge in general, just an fyi. I was very excited to see that hapiest existed instead of trying to run hapi.py.

Unable to run Hapiest

Hello everyone here,
I have been successful in installing all the packages as per the steps mentioned in the manual. I could also run the /src. I entered the API and I got exited from Hapiest. But I am unable to access the GUI.
The last step in the manual: "After you install hapiest, you can start it by calling run in a command prompt or terminal." i am unable to execute (not understanding what needs to be done). I have attached a snapshot of what I did and the error I am getting.
image
Can someone explain to me how it needs to be done?
Thank You in advance.

Regards!

Fetch Window

The wavenumber min and wavenumber max fields don't let you input values that would make the min > max, but it makes it basically impossible to type in a max value (and sometimes a min value) without using the up/down arrows

Graph Window Viewport

Can't enter viewport values greater than 99.99 even when the graph generated extends beyond 100.

Cannot graph tables that were created through 'select'

Upon trying to graph data that was put through select gives the following error:
[Err] [Errno 2] No such file or directory: 'data/kyle.hmd'

hmd files are no longer necessary, there is no need to try and read the .hmd file anymore

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.