May-19-2019, 11:16 AM
(This post was last modified: May-19-2019, 11:55 AM by gurbhej_singh.)
Greetings for the day.
Thank you for your efforts. I think their is no issue of path because all files are in same folder. I tried to do as you said but i end up with error.
Error which i have got is as below
@Skaperen Thank you for the reply.
I am new with programming world so I do not clearly understand what are you trying to say.
I also try to search the web for the "descriptors", but it did not help to the extent that I understand the concepts behind the use of descriptors.
Please, can you explain more? I shall be very thankful to you.
Thank you for your efforts. I think their is no issue of path because all files are in same folder. I tried to do as you said but i end up with error.
(May-05-2019, 11:14 PM)DeaD_EyE Wrote: try:
octave.add()
or:
octave.feval("add.m") [Source]
instead of:
octave.run('add.m')
Error which i have got is as below
Error:Traceback (most recent call last):
File "C:\Users\GURBHEJ SINGH\Desktop\multiple_inputs\oct2py1 - Copy.py", line 12, in <module>
result=octave.feval("multiple_inputs - Copy.m")
File "C:\Python\Python36\lib\site-packages\oct2py\core.py", line 373, in feval
store_as=store_as, plot_dir=plot_dir)
File "C:\Python\Python36\lib\site-packages\oct2py\core.py", line 572, in _feval
raise Oct2PyError(msg)
oct2py.utils.Oct2PyError: Octave evaluation error:
error: feval: function 'multiple_inputs - Copy' not found
@Skaperen Thank you for the reply.
I am new with programming world so I do not clearly understand what are you trying to say.
(May-05-2019, 11:32 PM)Skaperen Wrote: what i have done many times, because i don't know if it is safe to replace sys.stdout, and because i am running on Linux, is open the file and get the file descriptor, and replace stdout at that layer like:if fd!=1: os.dup2(fd,1) os.close(fd)i usually sys.stdout.flush() before that for consistent output.
I also try to search the web for the "descriptors", but it did not help to the extent that I understand the concepts behind the use of descriptors.
Please, can you explain more? I shall be very thankful to you.