Dear All,
I am trying to fit a spectrum using a power law model. I am using
lmfit.minimizer. But the problem is that the value of parameter I am getting is
same as the initial value. Means minimizer is not working. Here is the part of
my code:
p = Parameters()
p.add('b', value=10)
p.add('x_0',
"Peter J. Holzer" :
> On 2018-06-11 12:24:54 +, Steven D'Aprano wrote:
>> It also clearly states:
>>
>> All functions in this module raise OSError in the case of
>> invalid or inaccessible file names and paths, or other
>> arguments that have the correct type, but are not accepted
[Of the first part]
line 19 is
action(progress=progress, *args)
where the args is a tuple
args = (i, 3)
and the function is defined as
def action(id, reps, progress):
In documents 4.7.2. Keyword Arguments, it says
'''
def parrot(voltage, state='a stiff', action='voom', type='Norwe
On 2018-06-13 05:24, Chris Angelico wrote:
> Oh wait, your code isn't anything remotely sane. But for the rest of
> us, large files aren't a problem.
I don't like large files--I think mostly because files are an
organisational tool, they're quite good at that job, and one might as
well use them. B
Hi Team,
I wanted to parse a file and extract few feilds that are present after "="
in a text file .
Example , form the below line I need to extract the values present after
--struct =, --loc=, --size= and --log_file=
Sample input
line = '06/12/2018 11:13:23 AM python toolname.py --struct=d
Hi All,
I forgot the syntax of making a button flash, and failed to find an example in
the web. I use Tkinter, to create a button. Then made it packed, and showed up.
Now I am trying to make button b flashing, to make it get better noticed. I
checked the docs, and found a method flash() is avai
On Wed, Jun 13, 2018 at 5:56 PM, Ed Kellett wrote:
> On 2018-06-13 05:24, Chris Angelico wrote:
>> Oh wait, your code isn't anything remotely sane. But for the rest of
>> us, large files aren't a problem.
>
> I don't like large files--I think mostly because files are an
> organisational tool, they
On Sunday, 10 June 2018 17:29:59 UTC-4, Cameron Simpson wrote:
> On 10Jun2018 13:04, bellcanada...@gmail.com wrote:
> >here is the full error once again
> >to summarize, my script works fine in python2
> >i get this error trying to run it in python3
> >plz see below after the error, my settings f
On Sunday, 10 June 2018 17:29:59 UTC-4, Cameron Simpson wrote:
> On 10Jun2018 13:04, bellcanada...@gmail.com wrote:
> >here is the full error once again
> >to summarize, my script works fine in python2
> >i get this error trying to run it in python3
> >plz see below after the error, my settings f
> 1st is this script is from a library module online open source
If it's open source, why didn't you show the link to the soruce?
I assume your code is this:
https://github.com/siddharth2010/String-Search/blob/6770c7a1e811a5d812e7f9f7c5c83a12e5b28877/createIndex.py
And self.collFile is opened h
On Wed, 13 Jun 2018 04:01:24 -0700, bellcanadardp wrote:
> for line in self.collFile.decode("utf-8"):
> i actually write.encode...then i tried the decode but both dont have any
> effect
Raising AttributeError isn't an effect?
py> f = open("/tmp/x")
py> f.write.decode
Traceback (most recent call
huey.y.ji...@gmail.com wrote:
> Hi All,
>
> I forgot the syntax of making a button flash, and failed to find an
> example in the web. I use Tkinter, to create a button. Then made it
> packed, and showed up. Now I am trying to make button b flashing, to make
> it get better noticed. I checked the
On Wed, 13 Jun 2018 14:08:35 +1000, Cameron Simpson wrote:
> I was going to say something along these lines, but to some extent this
> feels like an unfair finger pointing exercise. Huge files can be a PITA;
> having something that aids moving around them reduces the pain, but
> doesn't remove the
On Wednesday, June 13, 2018 at 4:27:35 AM UTC-5, Chris Angelico wrote:
> It's more his definition of "large" and "small" that I was
> disagreeing with. You're absolutely right that a dense
> global scope is a problem; but a "one class per file" rule
> is a terrible idea.
What if the "one class" sp
On 13/06/18 09:08, Ganesh Pal wrote:
Hi Team,
I wanted to parse a file and extract few feilds that are present after "="
in a text file .
Example , form the below line I need to extract the values present after
--struct =, --loc=, --size= and --log_file=
Sample input
line = '06/12/2018 11
On Wed, 13 Jun 2018 14:21:53 +0800, sa...@caprilion.com.tw wrote:
> [Of the first part]
> line 19 is
> action(progress=progress, *args)
> where the args is a tuple
> args = (i, 3)
> and the function is defined as
> def action(id, reps, progress):
>
> In documents 4.7.2. Keyword Arg
On Wed, 13 Jun 2018 10:10:03 +0300, Marko Rauhamaa wrote:
> "Peter J. Holzer" :
[...]
>> I wasn't entirely clear here. What I meant is that POSIX systems, as a
>> group, provide no such way.
>
> I still don't see how POSIX is directly relevant here.
Linux users like to sneer at Windows users for
On Wed, 13 Jun 2018 03:55:58 -0700, bellcanadardp wrote:
> the collFile has to be like a variable that would refer to the file
> Collection.dat..thats my best guess also in the error line , it doesnt
> actually open the file ...
The file has to be opened if you are reading from it. If it isn't op
On Wednesday, 13 June 2018 07:14:06 UTC-4, INADA Naoki wrote:
> > 1st is this script is from a library module online open source
>
> If it's open source, why didn't you show the link to the soruce?
> I assume your code is this:
>
> https://github.com/siddharth2010/String-Search/blob/6770c7a1e81
Hello everyone,
Here is a small picture of my project.
I'd like to fetch several datas from a website representing races results.
Each line of the result contains rank, runner's name and other attributes
of the runner (like club etc...).
For now I have created 2 classes (Race and Runner).
Methods
On Wednesday, 13 June 2018 09:12:32 UTC-4, Steven D'Aprano wrote:
> On Wed, 13 Jun 2018 03:55:58 -0700, bellcanadardp wrote:
>
> > the collFile has to be like a variable that would refer to the file
> > Collection.dat..thats my best guess also in the error line , it doesnt
> > actually open the f
Hello everyone,
Here is a small picture of my project.
I'd like to fetch several datas from a website representing races results. Each
line of the result contains rank, runner's name and other attributes of the
runner (like club etc...).
For now I have created 2 classes (Race and Runner).
Method
On 2018-06-13, Tamara Berger wrote:
> I just meant edit within the moment or two after you've posted a
> message. I think a good feature in this forum would allow posters to
> edit their messages in just that way. I have such a feature enabled in
> gmail. I can "undo" my action for 30 seconds af
Sorry for this basic question, but to change my code if it's failed the PEP8
test, what code do I use to open my program and make changes? Obviously, I
should still be in bash, but then what?
Thanks,
Tamara
--
https://mail.python.org/mailman/listinfo/python-list
On 2018-06-13 16:04, T Berger wrote:
Sorry for this basic question, but to change my code if it's failed the PEP8
test, what code do I use to open my program and make changes? Obviously, I
should still be in bash, but then what?
You edit it in a plain text editor (i.e. an editor for plain tex
On Wed, 13 Jun 2018 08:04:27 -0700, T Berger wrote:
> Sorry for this basic question, but to change my code if it's failed the
> PEP8 test, what code do I use to open my program and make changes?
Use your text editor to modify the source code of the program.
I'm of two minds here... on the one h
On Wed, 13 Jun 2018 14:30:05 +, Grant Edwards wrote:
[...]
> You refer to "this forum" as if you think it's some centrally controlled
> web application. It's not. It's a Usenet group gatewayed to a mailing
> list gatewayed to an archive/nntp server at gmane.org. Google then
> duct-taped the
On Wed, 13 Jun 2018 12:43:12 +, Alister via Python-list wrote:
> I have a theory that it's impossible to prove anything, but I can't
> prove it.
Heh, that reminds me of Stephen Pinker's comment from "Enlightenment Now":
"one cannot reason that there's no such thing as reason"
but on the oth
r...@zedat.fu-berlin.de (Stefan Ram):
> T Berger writes:
>>to change my code if it's failed the PEP8 test,
>>what code do I use to open my program and make changes?
>
> A text editor (emacs, vim, pico, IDLE, notepad, ex, sed, ...).
> What did you use to write your code in the first place?
Th
On Wednesday, June 13, 2018 at 11:04:39 AM UTC-4, T Berger wrote:
> Sorry for this basic question, but to change my code if it's failed the PEP8
> test, what code do I use to open my program and make changes? Obviously, I
> should still be in bash, but then what?
>
> Thanks,
>
> Tamara
I did m
Hi everyone,
I'm curious what data types pyplot takes. It seems that it can take numpy
series, pandas series, and possibly pandas dataframe? How many people data
types are out there? Is that true for all functions in like hist(), bar(),
line(), etc?
Is there an official documentation that lists t
On 6/13/2018 7:21 AM, Peter Otten wrote:
huey.y.ji...@gmail.com wrote:
I forgot the syntax of making a button flash, and failed to find an
example in the web. I use Tkinter, to create a button. Then made it
packed, and showed up. Now I am trying to make button b flashing, to make
it get better
On Wednesday, June 13, 2018 at 10:47:40 AM UTC-5, Steven D'Aprano wrote:
> I'm of two minds here...
Obviously.
> [...] So use your own judgement: if following PEP 8 becomes
> a chore, or if you would rather follow your own style,
> don't feel guilty about ignoring the style guide.
IOWs:
"
On 6/13/2018 12:35 PM, T Berger wrote:
I did make the changes in IDLE, but I thought I must be in the wrong place.
This is a good place for beginners.
The line of code I got in terminal was:
/Users/TamaraB/Desktop/mymodules/vsearch.py:1:25: E231 missing whitespace after
':'
def search4vowel
On Wed, Jun 13, 2018 at 5:59 PM, Rhodri James wrote:
> On 13/06/18 09:08, Ganesh Pal wrote:
>
>> Hi Team,
>>
>> I wanted to parse a file and extract few feilds that are present after "="
>> in a text file .
>>
>>
>> Example , form the below line I need to extract the values present after
>> --
Now that Python 3.7 has reached release candidate status, I thought that
I should try it. But I use Matplotlib a lot and this fails to install
with Python 3.7 because "freetype and png cannot be installed" (I am
using Windows 10).
I am wondering if anyone knows how to work around this issue?
I l
On 13 June 2018 at 17:35, T Berger wrote:
> I did make the changes in IDLE, but I thought I must be in the wrong place.
> The line of code I got in terminal was:
> /Users/TamaraB/Desktop/mymodules/vsearch.py:1:25: E231 missing whitespace
> after ':'
> def search4vowels(phrase:str)->set:
>
> I t
A new version of the Python module which wraps GnuPG has been released.
What Changed?=This is a security-fix release, and all users are
strongly encouraged to upgrade.This fix mitigates against CVE-2018-12020. See
the discoverer's blog post [6] formore information.
Brief summary:
* A
On Wed, Jun 13, 2018 at 10:10 AM Steven D'Aprano
wrote:
>
> On Wed, 13 Jun 2018 12:43:12 +, Alister via Python-list wrote:
>
> > I have a theory that it's impossible to prove anything, but I can't
> > prove it.
>
> Heh, that reminds me of Stephen Pinker's comment from "Enlightenment Now":
>
>
On 2018-06-13 18:32, Ganesh Pal wrote:
On Wed, Jun 13, 2018 at 5:59 PM, Rhodri James wrote:
On 13/06/18 09:08, Ganesh Pal wrote:
Hi Team,
I wanted to parse a file and extract few feilds that are present after "="
in a text file .
Example , form the below line I need to extract the valu
On Sunday, June 10, 2018 at 3:05:45 PM UTC-5, Barry wrote:
> The way I learn about the details of RPM packaging is to look at examples
> like what I wish to achieve.
>
> I would go get the source RPM for a python2 package from each distro you want
> to supoort and read its .spec file.
>
> I se
On Thu, Jun 14, 2018 at 1:45 AM, Steven D'Aprano
wrote:
> On Wed, 13 Jun 2018 08:04:27 -0700, T Berger wrote:
>
>> Sorry for this basic question, but to change my code if it's failed the
>> PEP8 test, what code do I use to open my program and make changes?
>
> Use your text editor to modify the so
On 2018-06-13 10:10:03 +0300, Marko Rauhamaa wrote:
> "Peter J. Holzer" :
> > On 2018-06-11 12:24:54 +, Steven D'Aprano wrote:
> >> It also clearly states:
> >>
> >> All functions in this module raise OSError in the case of
> >> invalid or inaccessible file names and paths, or other
>
On 2018-06-11 14:23:42 +0300, Marko Rauhamaa wrote:
> "Peter J. Holzer" :
> > On 2018-06-11 01:06:37 +, Steven D'Aprano wrote:
> >> Baking a limitation of some file systems into the high-level
> >> interface is simply a *bad idea*.
> >
> > We aren't talking about a high-level interface here.
>
On 06/13/2018 07:32 PM, Ganesh Pal wrote:
On Wed, Jun 13, 2018 at 5:59 PM, Rhodri James wrote:
On 13/06/18 09:08, Ganesh Pal wrote:
Hi Team,
I wanted to parse a file and extract few feilds that are present after "="
in a text file .
Example , form the below line I need to extract t
"Peter J. Holzer" :
> POSIX specifies a number of error codes which can be returned by stat():
>
> [EACCES]
> Search permission is denied for a component of the path prefix.
> [EIO]
> An error occurred while reading from the file system.
> [ELOOP]
> A loop exists in symbolic links enco
Dear all,
It is my pleasure to announce the availability of Django-hotsauce 1.0
LTS (Commercial Edition) for preorder:
https://www.livestore.ca/product/django-hotsauce/
Purchase this gem using Paypal before October 1st 2018 with the discount
code "djangohotsauce" and get 50% off the regular
On 2018-06-13 23:56:09 +0300, Marko Rauhamaa wrote:
> "Peter J. Holzer" :
> > POSIX specifies a number of error codes which can be returned by stat():
[...]
> > So none of these is a good choice for the errno parameter of an OSError
> > to be thrown.
>
> The natural errno value would be EINVAL, wh
On 13Jun2018 15:23, Fabien LUCE wrote:
Here is a small picture of my project.
I'd like to fetch several datas from a website representing races results.
Each line of the result contains rank, runner's name and other attributes
of the runner (like club etc...).
For now I have created 2 classes (R
Alister via Python-list at 2018/6/13 PM 08:43 wrote:
IMHO, there is no reason to check the *args has to appear at last in
positional argument list in a function call because of there is no
"unknown number of parameters" at the time of unpacking. It should be
alright to write line 19
action(
On Wednesday, June 13, 2018 at 5:23:17 PM UTC+8, huey.y...@gmail.com wrote:
> Hi All,
>
> I forgot the syntax of making a button flash, and failed to find an example
> in the web. I use Tkinter, to create a button. Then made it packed, and
> showed up. Now I am trying to make button b flashing,
The term mutable appears quite often in Python.
Can anyone explain what is meant by mutable and immutable sequences.
For example, Python lists are mutable.
BTW, is the below explanation correct (it is taken from a book I am reading)
Python lists are mutable sequences. They are very similar to tu
Hi All,
root = Tkinter.Tk()
button = Tkinter.Button(root, text="Find me")
button.pack()
I created a button, Python object. I recall I can check this object existing by
using winfo, such as winfo.exists(button). However, I forgot which super
class contains this winfo method. I printed ou
On 06/13/2018 07:56 PM, Sharan Basappa wrote:
The term mutable appears quite often in Python.
Can anyone explain what is meant by mutable and immutable sequences.
Mutable means changeable, and immutible means not mutable, or unchangeable.
For example, Python lists are mutable.
BTW, is the be
On Thu, Jun 14, 2018 at 12:56 PM, Sharan Basappa
wrote:
> The term mutable appears quite often in Python.
> Can anyone explain what is meant by mutable and immutable sequences.
>
> For example, Python lists are mutable.
>
> BTW, is the below explanation correct (it is taken from a book I am readin
Sharan Basappa writes:
> For example, Python lists are mutable.
Yes, that's correct.
> BTW, is the below explanation correct (it is taken from a book I am
> reading)
>
> Python lists are mutable sequences. They are very similar to tuples,
> but they don't have the restrictions due to immutabili
Priya Singh writes:
> Dear All,
>
> I am trying to fit a spectrum using a power law model. I am using
> lmfit.minimizer.
You are asking a question about a specific module ("lmfit") not part
of the Python standard library. You might get better help from
a different audience (one closer to "lmfit
huey.y.ji...@gmail.com writes:
> root = Tkinter.Tk()
> button = Tkinter.Button(root, text="Find me")
> button.pack()
>
> I created a button, Python object. I recall I can check this object existing
> by using winfo, such as winfo.exists(button). However, I forgot which
> super class contains t
On Wednesday, June 13, 2018 at 1:44:49 PM UTC-4, Paul Moore wrote:
> On 13 June 2018 at 17:35, T Berger wrote:
>
> > I did make the changes in IDLE, but I thought I must be in the wrong place.
> > The line of code I got in terminal was:
> > /Users/TamaraB/Desktop/mymodules/vsearch.py:1:25: E231
Am 14.06.18 um 05:14 schrieb huey.y.ji...@gmail.com:
root = Tkinter.Tk()
button = Tkinter.Button(root, text="Find me")
button.pack()
I created a button, Python object. I recall I can check this object existing by using winfo, such as winfo.exists(button). However, I forgot which super class c
Is it possible to do the "linting" after you've written your code but
before you install it for the first time?
Tamara
On Wed, Jun 13, 2018 at 12:30 AM Cameron Simpson wrote:
>
> On 13Jun2018 00:05, Tamara Berger wrote:
> >Thanks for the in-depth answer. I'm going to have to read it
> >carefully
On 14Jun2018 01:34, Tamara Berger wrote:
Is it possible to do the "linting" after you've written your code but
before you install it for the first time?
Sure. I always do it that way.
Just as you can run your code before you install it, you can lint your code
beforehand also. In fact, you sh
On Tuesday, April 10, 2018 at 1:21:53 AM UTC-4, Chris Angelico wrote:
> I recommend, instead, joining the mailing list:
>
> https://mail.python.org/mailman/listinfo/python-list
There seem to be two options on the Python-list Information Page.
* Subscribe to the list (see sections below)
* Sen
On 6/13/2018 8:57 PM, huey.y.ji...@gmail.com wrote:
On Wednesday, June 13, 2018 at 5:23:17 PM UTC+8, huey.y...@gmail.com wrote:
Hi All,
I forgot the syntax of making a button flash, and failed to find an example in
the web. I use Tkinter, to create a button. Then made it packed, and showed up.
Can anyone explain to me the purpose of "pattern" in the line below:
documents.append((w, pattern['class']))
documents is declared as a list as follows:
documents.append((w, pattern['class']))
--
https://mail.python.org/mailman/listinfo/python-list
I haven't purchased commercial software in decades, so I'm not up on the
prevailing business model, but I have to ask:
Why would anyone purchase software and then agree to wait 14 weeks for
it to be delivered? I can see that model for hardware, where material
resources are limited and a finit
On Thu, Jun 14, 2018 at 1:49 AM Cameron Simpson wrote:
> Just as you can run your code before you install it, you can lint your code
> beforehand also. In fact, you should be doing both: run and test the code
> _before_ installing it, and also lint it (when you care) and test again
> (because if
On Thu, Jun 14, 2018 at 11:07 AM, Jim Lee wrote:
> I haven't purchased commercial software in decades, so I'm not up on the
> prevailing business model, but I have to ask:
>
> Why would anyone purchase software and then agree to wait 14 weeks for it to
> be delivered? I can see that model for har
On 6/14/2018 1:20 AM, Christian Gollwitzer wrote:
Am 14.06.18 um 05:14 schrieb huey.y.ji...@gmail.com:
root = Tkinter.Tk()
button = Tkinter.Button(root, text="Find me")
button.pack()
I created a button, Python object. I recall I can check this object
existing by using winfo, such as winfo.e
Le 2018-06-14 à 02:38, Chris Angelico a écrit :
On Thu, Jun 14, 2018 at 11:07 AM, Jim Lee wrote:
I haven't purchased commercial software in decades, so I'm not up on the
prevailing business model, but I have to ask:
Why would anyone purchase software and then agree to wait 14 weeks for it to
70 matches
Mail list logo