Git Product home page Git Product logo

hdtv-unattached's People

Contributors

j-kleemann avatar janmayer avatar mijja-koeln avatar nfbraun avatar op3 avatar owigera avatar ralfschulze avatar warr avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

hdtv-unattached's Issues

Bash prompt breaks/malformed when exiting HDTV by closing the spectra window

My bash prompt acts strange after exiting hdtv by closing the spectra window (clicking the X button).
E.g. typed input on the bash does not appear in the terminal, although recognized by bash (can execute the invisible command), and entering an empty line (just return) does not create a new line, but shows a new prompt anyway:

jk@JK-PC:~$ jk@JK-PC:~$ I echoed this by echo
jk@JK-PC:~$ but the command did not show up when I typed it!
jk@JK-PC:~$ jk@JK-PC:~$

I have to execute reset for it to work properly again.

@ prefix not recognized in a one-liner command (as with hdtv -e "cmd1 ; @file")

The @ prefix to execute a HDTV command file can not be used as a non-first statement in a one-liner multicommand e.g. s g spectrum.tv ; @file yields ERROR: Command not recognized and s g spectrum.tv @file yields WARNING: @file.hdtv: no such file with the later example being bad syntax anyway.
This is unfortunate when using the -e HDTV command line toggle to execute commands at startup when the @ command is used as a second instruction, e.g. hdtv -e "s g spectrum.tv ; @file" again yields ERROR: Command not recognized and also

hdtv -e "s g spectrum.tv 
         @file"

yields WARNING: @file.hdtv: no such file as well.
As stated in issue #2 it might be nice to introduce a proper command in addition of @ (keeping it only for backwards-compatibility) to benefit from tab-completition on the HDTV prompt and allowing to introduce an help message (and possibly other command options later on).

"fit list" does not list existing fits without peaks (e.g. integrals)

HDTV allows to store a fit without any peaks, e.g. by setting region markers (and optionally background markers), executing "fit execute" (or "fit intergral execute") and then "fit store" (or using the -S flag in the previous step.
Altough at first a bit strange, I get that this behaviour is intended to be able to treat and store proper fits and integrals without any actual peaks fitted in the same manner.
A current drawback of this is, however, that stored fits without any peaks are not listed by fit list, while still being counted at its last line. This can be confusing.
Especially it's not straightfoward to find out which fit IDs are used and which are free.

It should be considered to let "fit list" list existing fits without peaks for example as a single line with the peak id being - and all other properties being either -- or the respective integral values.
E.g. for fit ID 2 being non-existent (deleted) and ID 3 being an integral:

  id  stat  chi    channel         pos          vol        width
 1.0     V   19   3802.3(1.4)  2841.5(1.0)    1.4(8)e+02  3.6(1.3)
 3.-     I   --           --           --            --         --
 4.0     V   21  3.43(10)e+03  2.56(8)e+03      3(9)e+05  6(6)e+01
 5.0     V  200    675.37(19)   510.99(15)    5.8(4)e+02  4.18(32)
 5.1     V  200      806.5(4)   608.74(31)       170(28)  4.18(32)```
 
4 peaks in 4 fits.

fit parameter status broken

Executing fit parameter status yields ERROR: not enough arguments for format string.
The problem does not appear when the background model is set to exponential via fit function background activate exponential, so maybe that is a hint?

% prefix to execute a single shell command broken

The % prefix to execute a single shell command (also still found in the documentation) does not work anymore.
E.g. %sleep 4 should execute sleep 4 on the system shell waiting for the commands termination.
This prefix can be especially useful in HDTV batch files being executed using the @ prefix, but also in the interactive commandline itself (altough there one can use the currently undocumented Alt+! keyboard shortcut for shell command execution).
In the meanwhile one can workaround the issue for batch files by using the : prefix to execute a python command by

:hdtv>import subprocess
:hdtv>subprocess.run(["command","arg"])

When fixing the issue, one could think about improving the shell command to take arguments like shell sleep 5 or shell bash with just shell defaulting to shell sh for an interactive shell, kind of adding an alias to % .
The shell command should then also give a help message via shell -h and later on could add even more options (e.g. an option to not wait for command termination or so).
The advantage would be a more consistent and readable interface superseding the cryptic % command (which is also not included in tab-autocompletion).
The same naturally holds for the : command to execute a python statement, altough this currently still works unlike the % command.

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.