Path: csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail From: Peter Otten <__peter__@web.de> Newsgroups: comp.lang.python Subject: Re: Help with python script for NMR Date: Sun, 27 Mar 2016 19:39:30 +0200 Organization: None Lines: 49 Message-ID: References: <89a6c69e-5f60-47d7-99db-4004966fc7c5@googlegroups.com> <5f7ff60d-0297-4bee-b3e4-3af0ca757dfe@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8Bit X-Trace: news.uni-berlin.de kLok91kixRb2wl7GHQsjXQZGqj2Qh9H0kygGlAXWKHkQ== Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.019 X-Spam-Evidence: '*H*': 0.96; '*S*': 0.00; '"""': 0.05; 'skip:/ 10': 0.07; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'subject:script': 0.09; 'subject:Help': 0.10; 'python': 0.10; 'subject:python': 0.14; '2016': 0.16; 'alot': 0.16; 'cont': 0.16; 'received:80.91.229.3': 0.16; 'received:dip0.t-ipconnect.de': 0.16; 'received:io': 0.16; 'received:plane.gmane.org': 0.16; 'received:psf.io': 0.16; 'received:t-ipconnect.de': 0.16; 'wrote:': 0.16; 'script.': 0.18; 'programming': 0.22; 'am,': 0.23; 'help.': 0.23; 'script': 0.25; 'header:User-Agent:1': 0.26; 'header:X-Complaints-To:1': 0.26; 'skip:# 10': 0.27; 'embed': 0.29; 'url:mailman': 0.30; 'code': 0.30; 'error.': 0.31; 'anyone': 0.32; 'generally': 0.32; 'help,': 0.32; 'url:python': 0.33; 'common': 0.33; 'url:listinfo': 0.34; 'but': 0.36; 'should': 0.36; 'url:org': 0.36; 'created': 0.36; 'to:addr:python-list': 0.36; 'subject:: ': 0.37; 'there,': 0.37; 'turn': 0.37; 'thanks': 0.37; 'received:org': 0.37; 'someone': 0.38; "didn't": 0.39; 'url:mail': 0.40; 'to:addr:python.org': 0.40; 'subject:with': 0.40; 'received:de': 0.40; 'hope': 0.61; 'provide': 0.61; 'email addr:gmail.com': 0.62; 'programs': 0.62; 'here.': 0.62; 'making': 0.62; 'relatively': 0.63; 'skip:w 30': 0.64; 'march': 0.64; 'mar': 0.65; 'contact': 0.66; 'here': 0.66; 'helping': 0.67; 'url:info': 0.71; '8bit%:43': 0.72; 'article': 0.77; 'justine': 0.84; 'mistaken': 0.84; 'joel': 0.91 X-Injected-Via-Gmane: http://gmane.org/ X-Gmane-NNTP-Posting-Host: p57bd967e.dip0.t-ipconnect.de User-Agent: KNode/4.13.3 X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Xref: csiph.com comp.lang.python:105865 mohamadmaaz5@gmail.com wrote: > On Sunday, March 27, 2016 at 4:50:01 PM UTC+2, Joel Goldstick wrote: >> On Sun, Mar 27, 2016 at 10:38 AM, wrote: >> >> > Hello there, >> > I found a python script in a scientific article that enables a simple >> > calculation on an NMR spectrum. >> > I have no experience in programming and i would appreciate it if i can >> > communicate with someone who can write this script and send it to me by >> > mail in py format. It's a short script but i keep making alot of >> > mistaken and it fails every time. >> > Anyone's interested in helping me ? >> > Thanks >> > -- >> > https://mail.python.org/mailman/listinfo/python-list >> > >> >> copy the code here. You will get help, but people don't generally write >> programs for others here >> >> -- >> Joel Goldstick >> http://joelgoldstick.com/ >> http://cc-baseballstats.info/ > > this is the script. the thing is that i have zero experience in writing > and i cant find the error. all i need is to embed this script to perfome a > relatively simple calculation on a spectra. hope anyone can help. thanks > > #! /usr /bin/envpython > #encoding:utf- 8 > i m p o r tnmrtec . nmrNotebook . c o n t r o l l e r . C o n t r o l l e > r as Cont i m p o r tnmrtec . u t i l as u t i l > i m p o r tnmrtec . nmrNotebook . model . common .nmrCommon as nmrcom > c l a s sBarycentre : If you want to turn Annex B of www.theses.fr/2014STRAJ015.pdf into runnable Python please note """ Created by Marie−Aude Coutouly , Justine Vieville, Matthieu ... ...Tanty and Marc−Andre Delsuc on 2010−11−04 Copyright ( c ) 2010 NMRTEC and IGBMC. All rights Reserved . """" If you didn't already contact the author(s) you should try that first -- perhaps they can provide a copy of the original script.