Bug in 3.12.5

2024-09-20 Thread Martin Nilsson via Python-list
Dear Sirs ! The attached program doesn’t work in 3.12.5, but in 3.9 it worked. Best Regards Martin Nilsson -- https://mail.python.org/mailman/listinfo/python-list

Re: scipy.optimize.least_squares for more than one dimension?

2023-07-09 Thread Martin Schöön via Python-list
Den 2023-06-30 skrev Martin Schöön : > Yesterday I wanted to move from optimize.leastsq to > least_squares. I have data depending on four variables > and want to fit a function in four variables to this > data. This works with leastsq but not with least_squares. > > Am I tryi

scipy.optimize.least_squares for more than one dimension?

2023-06-30 Thread Martin Schöön via Python-list
was burning midnight oil... TIA /Martin -- https://mail.python.org/mailman/listinfo/python-list

Re: Problem with Matplotlib example

2023-04-14 Thread Martin Schöön
Den 2023-04-13 skrev MRAB : > On 2023-04-13 19:41, Martin Schöön wrote: >> Anyone had success running this example? >> https://tinyurl.com/yhhyc9r >> >> As far as I know I have an up-to-date matplotlib installed. Pip has >> nothing more modern to offer me. >

Problem with Matplotlib example

2023-04-13 Thread Martin Schöön
ld dive into the documentation myself but I hope some kind soul here will help out. As far as I know I have an up-to-date matplotlib installed. Pip has nothing more modern to offer me. TIA /Martin -- https://mail.python.org/mailman/listinfo/python-list

Re: on the python paradox

2022-12-11 Thread Martin Di Paola
On Mon, Dec 05, 2022 at 10:37:39PM -0300, Sabrina Almodóvar wrote: The Python Paradox Paul Graham August 2004 [SNIP] Hence what, for lack of a better name, I'll call the Python paradox: if a company chooses to write

Re: Which architectures to support in a CI like Travis?

2022-09-19 Thread Martin Di Paola
o two projects, both in Python, but with two totally different dependencies on the environment where they run, so their CI are different. The two examples are using Gitlab actions but the same applies to TravisCI. Thanks, Martin. On Sun, Sep 18, 2022 at 09:46:45AM +, c.bu...@posteo.jp wrote: H

Re: Simple TCP proxy

2022-07-27 Thread Martin Di Paola
s but in any moment your proxy will not activate (forward) more than N connections. This idea is thread-safe, simpler, efficient and has the queue discipline (I leave aside the usefulness). I encourage you to take time to read about the different things mentioned as concurrency and thread-related stu

Re: exec() an locals() puzzle

2022-07-20 Thread Martin Di Paola
I did a few tests # test 1 def f(): i = 1 print(locals()) exec('y = i; print(y); print(locals())') print(locals()) a = eval('y') print(locals()) u = a print(u) f() {'i': 1} 1 {'i': 1, 'y': 1} {'i': 1, 'y': 1} {'i': 1, 'y': 1, 'a': 1} 1 # test 2 def f(): i = 1

Re: list indices must be integers or slices, not str

2022-07-20 Thread Martin Di Paola
was never released in PyPI (I guess I never saw it as more than a challenge). But the implementation is quite simple (I did a post about it): https://book-of-gehn.github.io/articles/2021/07/11/Home-Made-Python-F-String.html Thanks, Martin. On Wed, Jul 20, 2022 at 10:46:35AM -0600, Mats Wichmann wr

Re: Simple message passing system and thread safe message queue

2022-07-18 Thread Martin Di Paola
s and as a challenge for you, make the server single-thread using asyncio and friends. Thanks, Martin. On Mon, Jul 18, 2022 at 06:31:28PM +0200, Morten W. Petersen wrote: Hi. I wrote a couple of blog posts as I had to create a message passing system, and these posts are here: http://blogologue.

Re: TENGO PROBLEMAS AL INSTALAR PYTHON

2022-07-08 Thread Martin Di Paola
On Fri, Jul 08, 2022 at 04:15:35PM -0600, Mats Wichmann wrote: In addition... there is no "Python 10.0" ... Mmm, perhaps that's the problem :D @Angie Odette Lima Banguera, vamos a necesitar algun traceback o algo para guiarte. Podes tambien buscar en internet (youtube) q hay varios tutori

Re: Filtering XArray Datasets?

2022-06-07 Thread Martin Di Paola
of how to fix it. In my last project I had a similar problem and I ended up doing the filtering on Python and the "real work" in Julia. Thanks! Martin. On Mon, Jun 06, 2022 at 02:28:41PM -0800, Israel Brewster wrote: I have some large (>100GB) datasets loaded into memory in a t

Re: Automatic Gain Control in Python?

2022-05-29 Thread Martin Schöön
d in looking up a standard called EBU R128. Start with youtube and you find lectures/demos. Python connection; There is a Python package called ffmpeg-normalize which contains an implementation of EBU R128. AFAIK it works on files, not streaming audio. /Martin -- https://mail.python.org/mailman/listinfo/python-list

Re: Request for assistance (hopefully not OT)

2022-05-17 Thread Martin Di Paola
t-get" says than in order to reinstall python it will have to remove half of your computer, abort. Better ask than sorry. Best of the lucks. Martin. On Tue, May 17, 2022 at 06:20:39AM -0500, o1bigtenor wrote: Greetings I was having space issues in my /usr directory so I deleted some programs

Re: Changing calling sequence

2022-05-13 Thread Martin Di Paola
You probably want something like overload/multiple dispatch. I quick search on PyPI yields a 'multipledispatch' package. I never used, however. On Wed, May 11, 2022 at 08:36:26AM -0700, Tobiah wrote: On 5/11/22 06:33, Michael F. Stemper wrote: I have a function that I use to retrieve daily dat

Re: Accuracy of multiprocessing.Queue.qsize before any Queue.get invocations?

2022-05-13 Thread Martin Di Paola
/she probably didn't care how well works in a single-process scenario as this is a very special case. Thanks, Martin. On Thu, May 12, 2022 at 06:07:02PM -0500, Tim Chase wrote: The documentation says[1] Return the approximate size of the queue. Because of multithreading/multiproce

Re: windows 11 what is wrong?

2022-04-27 Thread Lars Martin Hambro
Repair passed but pip3 and pip did not find pip.exe and missing modules. Lars Martin hambro Fra: Lars Martin Hambro Sendt: onsdag 27. april 2022, 21:31 Til: python-list@python.org Emne: windows 11 what is wrong? [cid:image001.png@01D85A7E.07A48030

Re: Could frozendict or frozenmap be of some use for PEP 683 (Immortal objects)?

2022-03-09 Thread Martin Di Paola
I perhaps didn't understand the PEP completely but I think that the goal of marking some objects as immortal is to remove the refcount from they. For immutable objects that would make them truly immutable. However I don't think that the immortality could be applied to any immutable object by def

Re: Execute in a multiprocessing child dynamic code loaded by the parent process

2022-03-08 Thread Martin Di Paola
Then, you must put the initialization (dynamically loading the modules) into the function executed in the foreign process. You could wrap the payload function into a class instances to achieve this. In the foreign process, you call the instance which first performs the initialization and then exe

Re: Execute in a multiprocessing child dynamic code loaded by the parent process

2022-03-07 Thread Martin Di Paola
7; in sys.modules True So the last check proves that pickle.loads imports any necessary module. Martin. On Mon, Mar 07, 2022 at 08:28:15AM +, Barry wrote: On 7 Mar 2022, at 02:33, Martin Di Paola wrote: Yes but I think that unpickle (pickle.loads()) does that plus importing any mod

Re: Execute in a multiprocessing child dynamic code loaded by the parent process

2022-03-06 Thread Martin Di Paola
e user, just trying to minimize the changes needed. And it will require some documentation for those caveats. And tests. Thanks for the brainstorming! Martin. -- https://mail.python.org/mailman/listinfo/python-list

Re: Execute in a multiprocessing child dynamic code loaded by the parent process

2022-03-06 Thread Martin Di Paola
I'm not so sure about that. The author of the plugin knows they're writing code that will be dynamically loaded, and can therefore expect the kind of problem they're having. It could be argued that it's their responsibility to ensure that all the needed code is loaded into the subprocess. Ye

Re: Execute in a multiprocessing child dynamic code loaded by the parent process

2022-03-06 Thread Martin Di Paola
Try to use `fork` as "start method" (instead of "spawn"). Yes but no. Indeed with `fork` there is no need to pickle anything. In particular the child process will be a copy of the parent so it will have all the modules loaded, including the dynamic ones. Perfect. The problem is that `fork` is t

Re: Execute in a multiprocessing child dynamic code loaded by the parent process

2022-03-06 Thread Martin Di Paola
;m loading the code dynamically. [...] I won't say "the" correct way, as there are other valid ways, but there's certainly nothing wrong with this idea. Do you have some in mind? Or may be a project that I could read? Thanks! Martin -- https://mail.python.org/mailman/listinfo/python-list

Execute in a multiprocessing child dynamic code loaded by the parent process

2022-03-06 Thread Martin Di Paola
_str,)) ch.start() The hack works but is this the correct way to do it? The following gist has the minimal example code that triggers the issue and its workaround: https://gist.github.com/eldipa/d9b02875a13537e72fbce4cdb8e3f282 Thanks! Martin. -- https://mail.python.org/mailman/listinfo/python-list

Re: Saving/exporting plots from Jupyter-labs?

2022-02-21 Thread Martin Schöön
Den 2022-02-14 skrev Martin Schöön : > > Now I am trying out Jupyter-labs. I like it. I have two head- > scratchers for now: > > 2) Why is Jupyter-labs hooking up to Google-analytics? Now I can answer this one myself. In a tab I had been working my way through a Holoviews tutoria

Re: library not initialized (pygame)

2022-02-19 Thread Martin Di Paola
Could you share the traceback / error that you are seeing? On Sun, May 02, 2021 at 03:23:21PM -0400, Quentin Bock wrote: Code: #imports and variables for game import pygame from pygame import mixer running = True #initializes pygame pygame.init() #creates the pygame window screen = pygame.dis

Re: venv and executing other python programs

2022-02-17 Thread Martin Di Paola
That's correct. I tried to be systematic in the analysis so I tested all the possibilities. Your test results were unexpected for `python3 -m venv xxx`. By default, virtual environments exclude the system and user site packages. Including them should require the command-line argument `--system-

Re: venv and executing other python programs

2022-02-15 Thread Martin Di Paola
ble of the venv, the program will have access to the libs installed in the environment. The same if I do: /home/user/venv/bin/python foo.py Thanks for the info! Barry Do you have a particular context where you are having troubles? May be there is something else going on... Thanks, Marti

Re: Saving/exporting plots from Jupyter-labs?

2022-02-15 Thread Martin Schöön
Den 2022-02-15 skrev Reto : > On Mon, Feb 14, 2022 at 08:54:01PM +0000, Martin Schöön wrote: >> 1) In notebooks I can save a plot by right-clicking on it and do >> save image as. In Jupyter-lab that does not work and so far I >> have not been able to figure out how to do i

Re: venv and executing other python programs

2022-02-15 Thread Martin Di Paola
ng the shebang "#!/usr/bin/env python") - ./foo.py (using the shebang "#!/usr/bin/env python3") Do you have a particular context where you are having troubles? May be there is something else going on... Thanks, Martin. On Tue, Feb 15, 2022 at 06:35:18AM +0100, Mirko via

Saving/exporting plots from Jupyter-labs?

2022-02-14 Thread Martin Schöön
do save image as. In Jupyter-lab that does not work and so far I have not been able to figure out how to do it. Yes, I have looked in the documentation. 2) Why is Jupyter-labs hooking up to Google-analytics? TIA, /Martin -- https://mail.python.org/mailman/listinfo/python-list

Re: How do you log in your projects?

2022-02-10 Thread Martin Di Paola
? Logs are not intended to be read by end users. Logs are primarily used to understand what the code is doing in a production environment. They could also be used to gather metrics data. Why should you log to give a message instead of simply using a print? You are assuming that logs and prints

Re: How do you log in your projects?

2022-02-09 Thread Martin Di Paola
- On a line per line basis? on a function/method basis? In general I prefer logging line by line instead per function. It is easy to add a bunch of decorators to the functions and get the logs of all the program but I most of the time I end up with very confusing logs. There are exceptions,

Re: Waht do you think about my repeated_timer class

2022-02-04 Thread Martin Di Paola
e target function fn() takes longer than the self._interval time. See if it helps. Thanks, Martin. On Thu, Feb 03, 2022 at 11:41:42PM +0100, Cecil Westerhof via Python-list wrote: Barry writes: On 3 Feb 2022, at 04:45, Cecil Westerhof via Python-list wrote: Have to be careful that timin

Re: sharing data across Examples docstrings

2022-01-14 Thread Martin Di Paola
ural bias because I'm its author. If you want to go with byexample, you may want to try its "doctest compatibility mode" first so you don't have to rewrite any test. ( https://byexamples.github.io/byexample/recipes/python-doctest ) Let me know if it is useful for you. Thanks

Re: Call julia from Python: which package?

2021-12-18 Thread Martin Di Paola
the dataset and ended up loading a lot of duplicated strings and blew up the memory a few times. I suggest you to write down what you need to speed up and see if it is implemented in Julia (do a proof of concept). Only then consider to do the switch. Good luck and share your results! Mart

Re: threading and multiprocessing deadlock

2021-12-06 Thread Martin Di Paola
threads that you spawned (background_thread functions). I hope that this can guide you to fix or at least narrow the issue. Thanks, Martin. On Mon, Dec 06, 2021 at 12:50:11AM +0100, Johannes Bauer wrote: Hi there, I'm a bit confused. In my scenario I a mixing threading with multiprocess

Re: Alternatives to Jupyter Notebook

2021-11-16 Thread Martin Schöön
Den 2021-11-15 skrev Loris Bennett : > Martin Schöön writes: > >> Den 2021-10-20 skrev Shaozhong SHI : >>> >>> My Jupyter notebook becomes unresponsive in browsers. >>> >> Odd, I never had any problems like that. I use Firefox on Linux. >> >&

Re: Alternatives to Jupyter Notebook

2021-11-14 Thread Martin Schöön
tried it myself and do not know how well it works. /Martin -- https://mail.python.org/mailman/listinfo/python-list

Re: walrus with a twist :+

2021-10-29 Thread Bob Martin
On 28 Oct 2021 at 18:52:26, "Avi Gross" wrote: > > Ages ago, IBM used a different encoding than ASCII called EBCDIC (Extended > Binary Coded Decimal Interchange Code ) which let them use all 8 bits and > thus add additional symbols. =B1 =A6 =AC IBM started using EBCDIC with System 360 and it is

Re: The task is to invent names for things

2021-10-28 Thread Martin Di Paola
IMHO, I prefer really weird names. For example if I'm not sure how to name a class that I'm coding, I name it like XXXYYY (literally). Really ugly. This is a way to avoid the so called "naming paralysis". Once I finish coding the class I look back and it should be easy to see "what it does" and

Re: Select columns based on dates - Pandas

2021-09-03 Thread Martin Di Paola
uk 2019-01-01 20 2 it 2019-01-01 30 3 us 2019-02-01 12 4 uk 2019-02-01 22 5 it 2019-02-01 32 With that you could create three dataframes, one per month. Thanks, Martin. On Thu, Sep 02, 2021 at 12:28:31PM -0700, Richard Medina wrote: Hello, forum, I have

Re: The sqlite3 timestamp conversion between unixepoch and localtime

2021-09-03 Thread Bob Martin
On 2 Sep 2021 at 20:25:27, Alan Gauld wrote: > On 02/09/2021 20:11, MRAB wrote: > >>> In one of them (I can't recall which is which) they change on the 4th >>> weekend of October/March in the other they change on the last weekend. >>> >>> >> In the EU (and UK) it's the last Sunday in March/October

Re: basic auth request

2021-08-21 Thread Martin Di Paola
h are more "secure". Thanks, Martin On Wed, Aug 18, 2021 at 11:05:46PM -, Jon Ribbens via Python-list wrote: On 2021-08-18, Robin Becker wrote: On 17/08/2021 22:47, Jon Ribbens via Python-list wrote: ... That's only true if you're not using HTTPS - and you should *

Re: on perhaps unloading modules?

2021-08-17 Thread Martin Di Paola
This may not answer your question but it may provide an alternative solution. I had the same challenge that you an year ago so may be my solution will work for you too. Imagine that you have a Markdown file that *documents* the expected results. --8<---cut here---st

Re: Empty list as a default param - the problem, and my suggested solution

2021-08-14 Thread Martin Di Paola
I don't know if it is useful but it is an interesting metaprogramming/reflection challenge. You used `inspect` but you didn't take its full potential. Try to see if you can simplify your code and see if you can come with a decorator that does not require special parameters. from new import N

Re: [ANN] Austin -- CPython frame stack sampler v3.0.0 is now available

2021-07-02 Thread Martin Di Paola
Very nice. I used rbspy for Ruby programs https://rbspy.github.io/ and it can give you some insights about the running code that other profiling techniques may not give you. I'll use it in my next performance-bottleneck challenge. On Fri, Jul 02, 2021 at 04:04:24PM -0700, Gabriele Tornetta wro

Re: optimization of rule-based model on discrete variables

2021-06-14 Thread Martin Di Paola
() (the decision tree) is set by Z3 and not by you such f() leads to the optimum of g()) https://book-of-gehn.github.io/articles/2021/05/26/Casting-Broadcasting-LUT-and-Bitwise-Ops.html Happy hacking. Martin. On Mon, Jun 14, 2021 at 12:51:34PM +, Elena via Python-list wrote: Il Mon, 14 J

Re: Recommendation for drawing graphs and creating tables, saving as PDF

2021-06-11 Thread Martin Di Paola
You could try https://plantuml.com and http://ditaa.sourceforge.net/. Plantuml may not sound as the right tool but it is quite flexible and after a few tweak you can create a block diagram as you shown. And the good thing is that you *write* which elements and relations are in your diagram an

Re: Data structure for plotting monotonically expanding data set

2021-06-05 Thread Martin Di Paola
the 'kb' values per each user 'name'. sns.violinplot(data=df, x="name", y="kb") plt.show() # plot the 'kb' per day for the 'alice' user sns.lineplot(data=df.query('name == "alice"'), x="date", y="kb") plt

Re: Use Chrome's / Firefox's dev-tools in python

2021-05-23 Thread Martin Di Paola
"unselectable text" not necessary means that it is an image. There is a CSS property that you can change to make a text selectable/unselectable. And if it is an image, it very likely that it comes from the server as such, so "intercepting" the packet coming from there will be for nothing: you

Re: Use Chrome's / Firefox's dev-tools in python

2021-05-22 Thread Martin Di Paola
lectq will open a web browser but given that it is fully automated, it should not be a problem (well, yes, it may run a little slow however). The good side is that both can inject javascript if you have to. Would this work for you or am I saying nonsense? Thanks! Martin. On Fri, May 21, 202

byexample: free, open source tool to find snippets of code in your docs and execute them as regression tests

2021-05-03 Thread Martin Di Paola
p install byexample And if you are a fan of Python's doctest (as I am), there is a compatibility mode that you may want to check: https://byexamples.github.io/byexample/recipes/python-doctest I would like to receive your feedback. Thanks for your time! Martin. -- https://mail.python.org/mailman/listinfo/python-list

Python 3.9. 1 not working

2021-02-09 Thread Martin Lopez
Where do I inquire about installation support? -- https://mail.python.org/mailman/listinfo/python-list

installation issues

2021-02-09 Thread Martin Lopez
Hello, My name is Martin Lopez. I just downloaded Python 3.9.1 (64 bit) Setup. After I install the program then try to run it, with no success. I've uninstalled all previous versions and reinstalled them, but it does not seem to help. Can you please assist? Thank you, --

Re: Jupyter notebooks to A4 (again)

2021-01-28 Thread Martin Schöön
Den 2021-01-25 skrev tommy yama : > Hi Martin, > > I noticed that i did use the same , > formats are mentioned in git already. > > https://github.com/jupyter/nbconvert > Are you telling me there are instruction for how to get A4paper format there? I have looked around but.

Re: Jupyter notebooks to A4 (again)

2021-01-28 Thread Martin Schöön
Den 2021-01-28 skrev Pieter van Oostrum : > Martin Schöön writes: > >> Hello all, >> >> Some years ago I asked about exporting notebooks to pdf in >> A4 rather than US Letter. I got help, rather detailed >> instructions from you in general and Piet von Oostrum

Jupyter notebooks to A4 (again)

2021-01-24 Thread Martin Schöön
) not very clever internet search yielded nothing helpful. Any ideas? /Martin -- https://mail.python.org/mailman/listinfo/python-list

Re: dayofyear is not great when going into a new year

2021-01-10 Thread Martin Schöön
Den 2021-01-09 skrev Michael F. Stemper : > > A week is like a piece of string. It has two ends. > The control line of the main sheet traveler on my boat is spliced into an endless loop. http://hem.bredband.net/b262106/pages/controls/index.html I am glad work weeks are not like that :-)

Re: dayofyear is not great when going into a new year

2021-01-08 Thread Martin Schöön
Den 2021-01-05 skrev Stefan Ram : > Martin =?UTF-8?Q?Sch=C3=B6=C3=B6n?= writes: >>I have had some Python fun with COVID-19 data. I have done >>some curve fitting and to make that easier I have transformed >>date to day of year. Come end of 2020 and beginning of 2021 >>

dayofyear is not great when going into a new year

2021-01-05 Thread Martin Schöön
and manipulating data coming from a csv file. Scipy, numpy and matplotlib are used for the curve fitting and plotting. TIA, /Martin -- https://mail.python.org/mailman/listinfo/python-list

Any timeline for PIL for Python 3.4

2020-08-10 Thread Martin
. -- Regards, Martin Leese E-mail: ple...@see.web.for.e-mail.INVALID Web: http://members.tripod.com/martin_leese/ -- https://mail.python.org/mailman/listinfo/python-list

Re: type annotations for xpath list

2020-04-08 Thread Martin Alaçam
10:02 AM, Martin Alaçam wrote: > > Hello, > > > > I have the following descriptor: > > > > self._pi = None > > @property > > def pi(self) -> list: > > self._pi = self._root.xpath('processing-instruction()') >

type annotations for xpath list

2020-04-08 Thread Martin Alaçam
Hello, I have the following descriptor: self._pi = None @property def pi(self) -> list: self._pi = self._root.xpath('processing-instruction()') return self._pi Mypy says: "Incompatible return value type (got "None", expected "List[Any]")" The xpath expression always r

Re: Jupyter Notebook -> PDF with A4 pages?

2019-11-22 Thread Martin Schöön
Den 2019-11-01 skrev Andrea D'Amore : > On Thu, 31 Oct 2019 at 22:08, Martin Schöön wrote: >> Den 2019-10-16 skrev Piet van Oostrum : >>> Why should that not work? >> pip install --user pip broke pip. I have not been able to repair pip > > I guess that's

Re: Jupyter Notebook -> PDF with A4 pages?

2019-10-31 Thread Martin Schöön
Den 2019-10-16 skrev Piet van Oostrum : > Martin Schöön writes: > >> Den 2019-10-15 skrev Piet van Oostrum : >>> >> pip is version 8.1.1 which is what Ubuntu 16.04 comes >> with. I have learnt -- the hard way -- that pip should be >> used with the --user

Re: Jupyter Notebook -> PDF with A4 pages?

2019-10-16 Thread Martin Schöön
r pip seams like cheating... For a moment I thought that maybe pdflatex was missing at work but not so. Disclaimer: I only had a few minutes to spend on this today. /Martin -- https://mail.python.org/mailman/listinfo/python-list

Re: Jupyter Notebook -> PDF with A4 pages?

2019-10-14 Thread Martin Schöön
Den 2019-10-13 skrev Piet van Oostrum : > Martin Schöön writes: > >> Is there a way to do "Download as PDF" and get A4 pages instead >> of Letter? Yes, I know I can do "Download as LaTeX" and edit the > < snip > > Make a directory ~/.jupyter

Jupyter Notebook -> PDF with A4 pages?

2019-10-13 Thread Martin Schöön
net but so far to no avail. /Martin -- https://mail.python.org/mailman/listinfo/python-list

Re: Python shows error on line 15 that i cant fix

2019-09-21 Thread Dave Martin
On Saturday, September 21, 2019 at 2:46:15 PM UTC-4, boB Stepp wrote: > On Sat, Sep 21, 2019 at 1:01 PM Dave Martin wrote: > > > > On Saturday, September 21, 2019 at 1:33:12 PM UTC-4, Terry Reedy wrote: > > > On 9/21/2019 11:53 AM, Dave Martin wrote: > [...] > &g

Re: Python shows error on line 15 that i cant fix

2019-09-21 Thread Dave Martin
On Saturday, September 21, 2019 at 1:33:12 PM UTC-4, Terry Reedy wrote: > On 9/21/2019 11:53 AM, Dave Martin wrote: > > > > # starAbsMags=df['radial_velocity'] > > > > #GaiaPandasEscapeVelocityCode > > > > import pandas as pd > > import

Re: python is bugging

2019-09-21 Thread Dave Martin
On Saturday, September 21, 2019 at 12:44:27 PM UTC-4, Brian Oney wrote: > On Sat, 2019-09-21 at 08:57 -0700, Dave Martin wrote: > > On Saturday, September 21, 2019 at 11:55:29 AM UTC-4, Dave Martin > > wrote: > > > what does expected an indented block > > > &g

Re: python is bugging

2019-09-21 Thread Dave Martin
On Saturday, September 21, 2019 at 11:55:29 AM UTC-4, Dave Martin wrote: > what does expected an indented block *what does an indented block mean? -- https://mail.python.org/mailman/listinfo/python-list

python is bugging

2019-09-21 Thread Dave Martin
what does expected an indented block -- https://mail.python.org/mailman/listinfo/python-list

Python shows error on line 15 that i cant fix

2019-09-21 Thread Dave Martin
# starAbsMags=df['radial_velocity'] #GaiaPandasEscapeVelocityCode import pandas as pd import numpy as np from astropy.io import fits import astropy import matplotlib.pyplot as plt #get the combined data and load the fits files fits_filename="Gaia_DR2/gaiadr2_100pc.fits" df=pd.DataFrame() wit

How do I purge pip intsall --user packages?

2019-09-17 Thread Martin Schöön
to uninstall each and every package would be tedious... /Martin -- https://mail.python.org/mailman/listinfo/python-list

problem about the installation

2019-06-17 Thread David Martin
Hello there! My computer windows is 8 and the operating system is 32-bit operating system, based upon x64 processor but I got a problem during installation, could you please assist me about this? I appreciate your efforts in advance. Thanks Yours sincerely YarDel Daudy

Re: subprocess svn checkout password issue

2019-03-15 Thread Martin De Kauwe
On Saturday, 16 March 2019 16:50:23 UTC+11, dieter wrote: > Martin De Kauwe writes: > > > I'm trying to write a script that will make a checkout from a svn repo and > > build the result for the user. However, when I attempt to interface with > > the shell it ask

subprocess svn checkout password issue

2019-03-15 Thread Martin De Kauwe
Hi, I'm trying to write a script that will make a checkout from a svn repo and build the result for the user. However, when I attempt to interface with the shell it asks the user for their filename and I don't know how to capture this with my implementation. user = "XXX578" root="https://trac

Re: Best way to (re)load test data in Mongo DB

2019-02-25 Thread Martin Sand Christensen
n given that I only have about a handful entries for each collection. > Regarding question #2, you can always directly give an _id for documents > if you want: > > https://api.mongodb.com/python/current/api/bson/objectid.html#bson.objectid.ObjectId Cheers. I'll give it another go. Martin -- https://mail.python.org/mailman/listinfo/python-list

Re: Best way to (re)load test data in Mongo DB

2019-02-24 Thread Martin Sand Christensen
e is to eventually release it as a sort of example project of how to build a complex web application. Testing is particularly important to me since it's too often being overlooked in tutorials, or it only deals with trivial examples. Martin -- https://mail.python.org/mailman/listinfo/python-list

Best way to (re)load test data in Mongo DB

2019-02-23 Thread Martin Sand Christensen
ntil now.) Am I being too difficult? I haven't been able to find much written about this topic: discussions about mocking drown out everything else the moment you mention 'mongo' and 'test' in the same search. Martin -- https://mail.python.org/mailman/listinfo/python-list

Re: Reading 'scientific' csv using Pandas?

2018-11-20 Thread Martin Schöön
Den 2018-11-19 skrev Martin Schöön : > I spoke too early. Upon closer inspection I get the first column with > decimal '.' and the rest with decimal ','. I have tried the converter > thing to no avail :-( > Problem solved! This morning I woke up with the idea of

Re: Reading 'scientific' csv using Pandas?

2018-11-19 Thread Martin Schöön
Den 2018-11-19 skrev Martin Schöön : > Den 2018-11-19 skrev Peter Otten <__pete...@web.de>: >> >> The engine="python" produces an exception over here: >> >> """ >> ValueError: The 'decimal' option is not supported wi

Re: Reading 'scientific' csv using Pandas?

2018-11-19 Thread Martin Schöön
Den 2018-11-19 skrev Peter Otten <__pete...@web.de>: > Martin Schöön wrote: > >> My pandas is up to date. >> > > The engine="python" produces an exception over here: > > """ > ValueError: The 'decimal' option is not su

Re: Reading 'scientific' csv using Pandas?

2018-11-19 Thread Martin Schöön
Too many files to go through them with an editor :-( /Martin -- https://mail.python.org/mailman/listinfo/python-list

Re: Reading 'scientific' csv using Pandas?

2018-11-19 Thread Martin Schöön
Den 2018-11-18 skrev Stefan Ram : > Martin =?UTF-8?Q?Sch=C3=B6=C3=B6n?= writes: >>to read from such files. This works so so. 'Common floats' (3,1415 etc) >>works just fine but 'scientific' stuff (1,6023e23) does not work. > > main.py > > imp

Re: Reading 'scientific' csv using Pandas?

2018-11-18 Thread Martin Schöön
Den 2018-11-18 skrev Shakti Kumar : > On Sun, 18 Nov 2018 at 18:18, Martin Schöön wrote: >> >> Now I hit a bump in the road when some of the data is not in plain >> decimal notation (xxx,xx) but in 'scientific' (xx,xxxe-xx) notation. >> > > Martin, I b

Reading 'scientific' csv using Pandas?

2018-11-18 Thread Martin Schöön
e found it already but I don't understand or I ask the wrong question to the search engines. My experience of Pandas is limited and I would appreciate some guidance. /Martin -- https://mail.python.org/mailman/listinfo/python-list

Re: Program to find Primes of the form prime(n+2) * prime(n+1) - prime(n) +- 1.

2018-10-02 Thread Martin Musatov
I am drafting a sequence for OEIS. I was told Python was most accesible for beginners. On Tue, Oct 2, 2018, 4:48 PM Bob Gailer wrote: > On Oct 2, 2018 4:59 PM, "Musatov" wrote: > > > > Primes of the form prime(n+2) * prime(n+1) - prime(n) +- 1. > > DATA > > > > 31, 71, 73, 137, 211, 3

Re: Fumbling with emacs + elpy + flake8

2018-09-15 Thread Martin Schöön
flake8 > Toni, your advice did not work out-of-the-box but it put me on the right track. When I revert to installing flake8 from Debian's repo it works. Strange as I have not done it like that on my primary computer. Both Debian installations but a generation apart. Case close

Re: Fumbling with emacs + elpy + flake8

2018-09-15 Thread Martin Schöön
Den 2018-09-13 skrev Brian Oney : > Hi Martin, > > I have messed around alot with the myriad emacs configurations out > there. I found spacemacs and threw out my crappy but beloved .emacs > config. I have looked back, but will stay put. http://spacemacs.org/ > Thanks Brian bu

Fumbling with emacs + elpy + flake8

2018-09-13 Thread Martin Schöön
appreciated. /Martin PS Debian on both computers. -- https://mail.python.org/mailman/listinfo/python-list

Re: Guido van Rossum resigns as Python leader

2018-07-13 Thread Bob Martin
in 796624 20180714 064331 Gregory Ewing wrote: >Larry Martell wrote: >> And while we're talking about the Dutch, why is the country called >> Holland, but then also The Netherlands, but the people are Dutch? > >And Germany is called Deutchland? The real question is why do English speakers refer t

Re: Meaning of abbreviated terms

2018-05-11 Thread Bob Martin
in 793617 20180511 072806 Steven D'Aprano wrote: >On Fri, 11 May 2018 07:20:36 +0000, Bob Martin wrote: > >> in 793605 20180511 044309 T Berger wrote: >>>On Saturday, May 5, 2018 at 6:45:46 PM UTC-4, MRAB wrote: >>>> On 2018-05-05 17:57, T Berger wrote: >

Re: Meaning of abbreviated terms

2018-05-10 Thread Bob Martin
in 793605 20180511 044309 T Berger wrote: >On Saturday, May 5, 2018 at 6:45:46 PM UTC-4, MRAB wrote: >> On 2018-05-05 17:57, T Berger wrote: >> > What does the "p" in "plist" stand for? >> > Is there a python glossary that spells out the meanings of abbreviated >> > terms? >> > >> "plist" is "pro

Re: Issue with python365.chm on window 7

2018-04-23 Thread Bob Martin
in 793268 20180423 223830 "Brian Gibbemeyer" wrote: >From: Brian Gibbemeyer/Detroit/IBM >To: python-list@python.org, d...@python.org >Date: 04/23/2018 03:35 PM >Subject:Issue with python365.chm on window 7 > > >Not sure which email this should go to. > >But I downloaded .chm versio

Re: Mayavi website?

2018-02-18 Thread Martin Schöön
Den 2018-02-17 skrev Martin Schöön : > Anyone else having problems with interacting with > http://code.enthought.com/pages/mayavi-project.html > ? > Later yesterday I found this: http://docs.enthought.com/mayavi/mayavi/ and it works without a hitch. /Martin -- https://mail.python

  1   2   3   4   5   6   7   8   9   10   >