Closed ramantehlan closed 5 years ago
Hey! Thanks for the PR. This was long overdue. Thanks for doing it. I really appreciate the presentation. Great work!
I have a couple of questions:
Thanks! Let me know if you have any questions.
PS. Also, if possible, move art.txt into install, as it is used only once and that will reduce number of root files.
Happy to know that you appreciate the efforts, I love this project and instantly felt a need for this feature.
install
script as well.Vinay-dev
, plus I will remove the art.txt file and will use it directly.It will be really helpful if you can you explain briefly about point one, I understand what you are trying to figure out, but it's not that clear to me.
The software aims to keep a detailed log of events, to help in debugging and statistics. Ideally I feel that this log should be stored at the root directory of the software. So that the user can just send that one file to us and we can find out the error, or run statistics like performance etc. If you take a look here I am initializing the logging engine with a file with relative address. So I am speculating that this log file would be created in the present working directory (where DirectDemod command was invoked) instead of intended root software directory. So I just wanted you to test if this is happening and if its possible to fix it. If its too much work, just ignore that for now, we will take care of it later.
I just tested this case, and you are right, the log file and output are being created in the folder where the command is being used.
we can solve it by keeping the location static of log files and outputs, so if we can have a folder $HOME/DirectDemod
, it can be used to store all the user data, like dot files, logs or outputs etc. It actually makes more sense, and which is why most of the projects save their logs files like this.
Don't worry about the log files for now. It might actually be a feature and not a bug xD. We will see that later. Did you say that outputs are also being created in same folder even when sample is elsewhere? Please confirm that this is not happening. If it is please open an issue as this should not happen. All outputs from a sample go into the folder of the sample by default.
I have rechecked it, the output is coming where the sample is, no matter where you execute it. so, that is good. I think we can do the same with the log, like saving it where the sample is or we can let it be for now. what do you suggest?
let it be for now.
Hey @7andahalf, Can you please open this pull request, since now I have changed the base from master -> Vinay_dev. Also, please review it, since I have all the required changes.
Closes #34
Synopsis
These changes will make
DirectDemod
a terminal command and also provide an install script (#34 ). Which will have the following benefits:DirectDemod
.Changes
main.py
shebang
- #!/usr/bin/env python is added to this file, in order to tell the terminal about the environment to execute this program in.requirements.txt I have removed the version number, so now the latest version will be downloaded, as It was requested to update them. In my humble opinion, the version number should remain static, since libraries at times change the userspace, which may lead to error, keeping them static will not let this happen.
README.md Installation instruction is added to
README.md
.Use
After the changes, users can install the project using
install
file, and then will be able to execute the same program usingDirectDemod
command, with the same functioning as themain.py
. Below is an example of the execution.@hornig and @7andahalf please review.