No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
Hi, I have a for-loop, and in each iteration I have to open a dos-command. I use the subprocess module for this: [code=python] fid1=open("test.txt", 'w') p=subprocess.Popen(args, stdout=fid1, stderr=subprocess.STDOUT, shell=True) fid1.close() [/code] The output of the dos-command is written to the txt-file, but I still need to terminate the process p. … |
|
Hi, I wrote two functions, FWT2_PO and IWT2_PO, both having a 'transform' method. The functions work really well, but a strange thing happens. Namely, the following code gives different output than the code below. [code=java] denoised = FWT2_PO.transform(array, 4, QMF, 2); //recovered=IWT2_PO.transform(denoised, 4, QMF); for (int i=0;i<denoised.length;i++){ for (int j=0;j<denoised.length;j++){ … |