issues? Some way to do an in-place filtering?
---
Israel Brewster
Software Engineer
Alaska Volcano Observatory
Geophysical Institute - UAF
2156 Koyukuk Drive
Fairbanks AK 99775-7320
Work: 907-474-5172
cell: 907-328-9145
--
https://mail.python.org/mailman/listinfo/python-list
apely.geometry import Polygon
>>> bounds = [-164.29635821669632, 54.64251856269729, -163.7631779798799,
>>> 54.845450778742546]
>>> print(Polygon.from_bounds(*bounds))
POLYGON EMPTY
…So apparently I have to make sure to import shapely *before* I import anything
from osge
print(shapely.__version__)
>>>from shapely.geometry import Polygon
>>>print(Polygon.from_bounds(*bounds))
Output:
1.8.0
POLYGON EMPTY
In fact, *any* attempt to create a polygon gives the same result:
>>> test = Polygon(((1, 1), (2, 1), (2, 2)))
>>> print(
indented exactly as you run it, you have an
indentation error. That is, the finish and print() are not indented to be part
of the if __name__… call. As such, they run on import. When you launch a new
process, it imports the module, which then runs those lines, since they are not
guarded by the
minimum working example that illustrated the behavioral
differences I was seeing :-) Thanks for the pointer!
---
Israel Brewster
Software Engineer
Alaska Volcano Observatory
Geophysical Institute - UAF
2156 Koyukuk Drive
Fairbanks AK 99775-7320
Work: 907-474-5172
cell: 907-328-9145
>
>
an
leverage it to do multiprocessing using spawn rather than fork in the future.
Looks straight-forward enough. Thanks again!
---
Israel Brewster
Software Engineer
Alaska Volcano Observatory
Geophysical Institute - UAF
2156 Koyukuk Drive
Fairbanks AK 99775-7320
Work: 907-474-5172
cell: 907-328-9
rrect (at
least starting with 3.8), what is the proper method of getting multiprocessing
queues to child processes?
---
Israel Brewster
Software Engineer
Alaska Volcano Observatory
Geophysical Institute - UAF
2156 Koyukuk Drive
Fairbanks AK 99775-7320
Work: 907-474-5172
cell: 907-328-9145
--
https://mail.python.org/mailman/listinfo/python-list
if the process is still actually running, and if so goes
back and calls join again? Or is there a better option to say “wait until this
process is done, however long that may be, unless it crashes”?
---
Israel Brewster
Software Engineer
Alaska Volcano Observatory
Geophysical Institute - UAF
2156 Koyukuk
the obvious options, with no
luck so far.
---
Israel Brewster
Software Engineer
Alaska Volcano Observatory
Geophysical Institute - UAF
2156 Koyukuk Drive
Fairbanks AK 99775-7320
Work: 907-474-5172
cell: 907-328-9145
--
https://mail.python.org/mailman/listinfo/python-list
>
> On Sep 3, 2019, at 11:09 AM, Israel Brewster wrote:
>
>>
>> On Sep 3, 2019, at 10:49 AM, Peter Otten <__pete...@web.de> wrote:
>>
>> Israel Brewster wrote:
>>
>>> When using pool.imap to apply a function over a list of values, w
>
> On Sep 3, 2019, at 9:27 AM, Rob Gaddi
> wrote:
>
> On 9/3/19 10:17 AM, Israel Brewster wrote:
>> When using pool.imap to apply a function over a list of values, what is the
>> proper way to pass additional arguments to the function, specifically in my
>>
>
> On Sep 3, 2019, at 10:49 AM, Peter Otten <__pete...@web.de> wrote:
>
> Israel Brewster wrote:
>
>> When using pool.imap to apply a function over a list of values, what is
>> the proper way to pass additional arguments to the function, specifically
>>
this is an exception?
---
Israel Brewster
Software Engineer
Alaska Volcano Observatory
Geophysical Institute - UAF
2156 Koyukuk Drive
Fairbanks AK 99775-7320
Work: 907-474-5172
cell: 907-328-9145
--
https://mail.python.org/mailman/listinfo/python-list
possible.
3) Other approaches?
---
Israel Brewster
Software Engineer
Alaska Volcano Observatory
Geophysical Institute - UAF
2156 Koyukuk Drive
Fairbanks AK 99775-7320
Work: 907-474-5172
cell: 907-328-9145
--
https://mail.python.org/mailman/listinfo/python-list
Never mind this request. I realized that for what I am doing, the web server
was unnecessary. I could just load local HTML files directly into the
QWebEngineView with no need of an intermediate server. Thanks anyway, and sorry
for the noise!
---
Israel Brewster
Software Engineer
Alaska Volcano
had some glitches with it
when using a lasso selector (plot going black). Still, with some work, it may
be an option.
---
Israel Brewster
Software Engineer
Alaska Volcano Observatory
Geophysical Institute - UAF
2156 Koyukuk Drive
Fairbanks AK 99775-7320
Work: 907-474-5172
cell: 907-328-9145
of generating the entire grid up-front, I generate the boxes as
needed to calculate the overlap with the data grid. This brought the processing
time down to around 40 seconds, so a definite improvement there.
---
Israel Brewster
Software Engineer
Alaska Volcano Observatory
Geophysical Institute - UAF
> On Feb 18, 2019, at 6:37 PM, Ben Finney wrote:
>
> I don't have anything to add regarding your experiments with
> multiprocessing, but:
>
> Israel Brewster writes:
>
>> Which creates and populates an 800x1000 “grid” (represented as a flat
>> list at th
thon3, the map function doesn’t actually produce a result
until needed, but that’s why I wrapped everything in calls to list(), at least
for testing.
---
Israel Brewster
Software Engineer
Alaska Volcano Observatory
Geophysical Institute - UAF
2156 Koyukuk Drive
Fairbanks AK 99775-7320
Work: 90
> On Jan 14, 2019, at 10:40 PM, dieter wrote:
>
> Israel Brewster writes:
>> I have a flask application deployed on CentOS 7 using Python 3.6.7 and uwsgi
>> 2.0.17.1, proxied behind nginx. uwsgi is configured to listed on a socket in
>> /tmp. The app uses gevent and
---
Israel Brewster
Systems Analyst II
5245 Airport Industrial Rd
Fairbanks, AK 99709
(907) 450-7293
---
[cid:bfa5c323-b100-481d-96b1-fc256ef2eb39@flyravn.com]
[cid:8c891973-9e67-47b3-aa14-5f58b9b93607
not be a big issue, but it has locked up once since the move
(no errors in the log, just not responding on the socket), so I am a bit
concerned.
---
Israel Brewster
Systems Analyst II
5245 Airport Industrial Rd
Fairbanks, AK 99709
(907) 450-7293
> On Feb 13, 2018, at 10:02 AM, Dan Stromberg <drsali...@gmail.com> wrote:
>
> On Tue, Feb 13, 2018 at 9:28 AM, Israel Brewster <isr...@ravnalaska.net>
> wrote:
>> As such, I'm considering three possible solutions:
>>
>> 1) Make some sort of installer p
>
> On Feb 6, 2018, at 12:12 PM, Israel Brewster <isr...@ravnalaska.net> wrote:
>
> I have been working on writing an Alexa skill which, as part of it, requires
> a local web server on the end users machine - the Alexa skill sends commands
> to this server, which runs t
> On Feb 6, 2018, at 8:24 PM, Dennis Lee Bieber <wlfr...@ix.netcom.com> wrote:
>
> On Tue, 6 Feb 2018 12:12:26 -0900, Israel Brewster <isr...@ravnalaska.net>
> declaimed the following:
>
>> I have been working on writing an Alexa skill which, as part of it
On Feb 6, 2018, at 12:12 PM, Israel Brewster <isr...@ravnalaska.net> wrote:
>
> I have been working on writing an Alexa skill which, as part of it, requires
> a local web server on the end users machine - the Alexa skill sends commands
> to this server, which runs them on th
. Also, I do need to leave a config file accessible for the end
user to be able to edit. Is there a way to use pyinstaller in this scenario, or
perhaps some other option that might work better to package things up?
---
Israel Brewster
Systems Analyst I
I am working on a python program that, at one step, takes an input (string),
and matches it to songs/artists in a users library. I'm having some difficulty,
however, figuring out how to match when the input/library contains
numbers/special characters. For example, take the group "All-4-One". In
---
Israel Brewster
Systems Analyst II
Ravn Alaska
5245 Airport Industrial Rd
Fairbanks, AK 99709
(907) 450-7293
---
> On Nov 3, 2017, at 7:11 AM, Rhodri James <rho...@kynesim.co.uk> wrote:
>
On Nov 2, 2017, at 12:36 PM, Chris Angelico <ros...@gmail.com> wrote:
>
> On Fri, Nov 3, 2017 at 7:35 AM, Israel Brewster <isr...@ravnalaska.net
> <mailto:isr...@ravnalaska.net>> wrote:
>> On Nov 2, 2017, at 12:30 PM, Chris Angelico <ros...@gmail.com> wrot
On Nov 2, 2017, at 11:15 AM, Stefan Ram <r...@zedat.fu-berlin.de> wrote:
>
> Israel Brewster <isr...@ravnalaska.net> writes:
>> the data structure that stores the socket connections needs
>> to be shared across all said processes.
>
> IIRC that's the differe
On Nov 2, 2017, at 12:30 PM, Chris Angelico <ros...@gmail.com> wrote:
>
> On Fri, Nov 3, 2017 at 5:54 AM, Israel Brewster <isr...@ravnalaska.net> wrote:
>> I have a Flask/UWSGI web app that serves up web socket connections. When a
>> web socket connection is create
thing like store a void pointer to the object, then cast it
to the correct object type, but that's not an option in python. So how can I
get around this issue?
-------
Israel Brewster
Systems Analyst II
Ravn Alaska
5245 Airport Industrial Rd
Fairbanks, AK
> On Nov 1, 2017, at 4:53 PM, Steve D'Aprano <steve+pyt...@pearwood.info> wrote:
>
> On Thu, 2 Nov 2017 05:53 am, Israel Brewster wrote:
>
> [...]
>> So the end result is that the thread that "updates" the dictionary, and the
>> thread that initia
On Nov 1, 2017, at 9:58 AM, Ian Kelly <ian.g.ke...@gmail.com> wrote:
>
> On Tue, Oct 31, 2017 at 11:38 AM, Israel Brewster <isr...@ravnalaska.net>
> wrote:
>> A question that has arisen before (for example, here:
>> https://mail.python.org/pipermail/pyt
On Nov 1, 2017, at 9:04 AM, Israel Brewster <isr...@ravnalaska.net> wrote:
>
> Let me rephrase the question, see if I can simplify it. I need to be able to
> access a defaultdict from two different threads - one thread that responds to
> user requests which will popul
by the main thread.
How can I *properly* share a dictionary like object between two threads, with
both threads seeing the updates made by the other?
---
Israel Brewster
Systems Analyst II
Ravn Alaska
5245 Airport Industrial Rd
Fairbanks, AK 99709
(907
immediately after connecting, as well as in
response to various user actions.
def getac():
for record in aclist:
last_points[]=record_timestamp
#DEBUGGING
print("At get AC:", len(last_points))
---
Israel Br
On Oct 20, 2017, at 11:09 AM, Stefan Ram <r...@zedat.fu-berlin.de> wrote:
>
> Israel Brewster <isr...@ravnalaska.net> writes:
>> Given that, is there any way I can write out the "raw" binary
>> data to a file
>
> If you can call into the Java SE li
I wouldn't expect
anyone here to know anything about that - I'm just asking about the python side
:-)
-------
Israel Brewster
Systems Analyst II
Ravn Alaska
5245 Airport Industrial Rd
Fairbanks, AK 99709
(907) 450-7293
---
vaguely helpful.
In a sense, in that it supports my initial approach.
As Stefan Ram pointed out, there is nothing wrong with the solution I have:
simply using if statements around the calculated lateness of t1 and t2 to
increment the appropriate counters. I was just thinking there might b
> On Oct 19, 2017, at 10:02 AM, Stefan Ram <r...@zedat.fu-berlin.de> wrote:
>
> Israel Brewster <isr...@ravnalaska.net> writes:
>> t10 = {'daily': 0, 'WTD': 0, 'MTD': 0, 'YTD': 0,}
>> increment the appropriate bin counts using a bunch of if statements.
>
>
> On Oct 19, 2017, at 9:40 AM, Israel Brewster <isr...@ravnalaska.net> wrote:
>
> I am working on developing a report that groups data into a two-dimensional
> array based on date and time. More specifically, date is grouped into
> categories:
>
> day, week-to-da
ot;rules" for the columns and rows, and drop my records into the table, having
them automatically counted into the proper bins or something? Or am I over
thinking this, and the "simple", if ugly approach is best?
---
Israel Brewster
Systems Analyst I
On Oct 17, 2017, at 12:02 PM, MRAB <pyt...@mrabarnett.plus.com> wrote:
>
> On 2017-10-17 20:25, Israel Brewster wrote:
>>
>>> On Oct 17, 2017, at 10:35 AM, MRAB <pyt...@mrabarnett.plus.com
>>> <mailto:pyt...@mrabarnett.plus.com>> wrote:
>
I'm not aware of any logging specifications in the PEP 249, and
would think that would be more end-user configured rather than module level.
---
Israel Brewster
Systems Analyst II
Ravn Alaska
5245 Airport Industrial Rd
Fairba
> On Oct 17, 2017, at 10:35 AM, MRAB <pyt...@mrabarnett.plus.com> wrote:
>
> On 2017-10-17 18:26, Israel Brewster wrote:
>> I have written and maintain a PEP 249 compliant (hopefully) DB API for the
>> 4D database, and I've run into a situation where corrupted string
se-by-case basis
what the proper action is, but since this a module that has to work in any
situation, it's a bit more complicated.
---
Israel Brewster
Systems Analyst II
Ravn Alaska
5245 Airport Industri
---
Israel Brewster
Systems Analyst II
Ravn Alaska
5245 Airport Industrial Rd
Fairbanks, AK 99709
(907) 450-7293
---
> On Jun 7, 2017, at 10:31 PM, dieter <die...@handshake.de> wrote:
>
&
could get *some*
limited benefit by raising the minconn value, but then I risk having
connections that are *never* used, yet still taking resources on the DB server.
Ideally, it would open as many connections as are needed, and then leave them
open for future requests, perhaps with an "idle"
efore, one DB connection - for a given session, and then simply hold on to
that object until that session expired. But perhaps not?
-------
Israel Brewster
Systems Analyst II
Ravn Alaska
5245 Airport Industrial Rd
Fairbanks, AK 99709
(907
doing this?
Thanks!
---
Israel Brewster
Systems Analyst II
Ravn Alaska
5245 Airport Industrial Rd
Fairbanks, AK 99709
(907) 450-7293
---
--
https://mail.python.org/mailman/listinfo/python-list
On Jan 16, 2017, at 11:34 PM, Peter Otten <__pete...@web.de> wrote:
>
> Gregory Ewing wrote:
>
>> Israel Brewster wrote:
>>> The problem is that, from time to time, I can't get a connection, the
>>> result being that cursor is None,
>>
>> T
On Jan 16, 2017, at 8:01 PM, Gregory Ewing <greg.ew...@canterbury.ac.nz> wrote:
>
> Israel Brewster wrote:
>> The problem is that, from time to time, I can't get a connection, the result
>> being that cursor is None,
>
> That's your problem right there -- you w
On Jan 16, 2017, at 1:27 PM, Terry Reedy <tjre...@udel.edu> wrote:
>
> On 1/16/2017 1:06 PM, Israel Brewster wrote:
>> I generally use context managers for my SQL database connections, so I can
>> just write code like:
>>
>> with psql_cursor() as cursor:
&
, but it's a thought. Options?
---
Israel Brewster
Systems Analyst II
Ravn Alaska
5245 Airport Industrial Rd
Fairbanks, AK 99709
(907) 450-7293
---
--
https://mail.python.org/mailman/listinfo/python-list
n the body of the request, but in what
format? Do I just url lib.urlencode() a dictionary and pass that as the body,
or is there some other method I should use? Thanks!
-------
Israel Brewster
Systems Analyst II
Ravn Alaska
5245 Airport Industrial Rd
Fairbanks, AK
On Feb 10, 2016, at 8:14 PM, Chris Angelico wrote:
>
> On Thu, Feb 11, 2016 at 4:06 PM, Frank Millman wrote:
>> A connection has 2 possible states - 'in transaction', or 'not in
>> transaction'. When you create the connection it starts off as 'not'.
>>
>>
On Feb 10, 2016, at 8:06 PM, Frank Millman <fr...@chagford.com> wrote:
>
> "Israel Brewster" wrote in message
> news:92d3c964-0323-46ee-b770-b89e7e7e6...@ravnalaska.net...
>
>> I am working on implementing a Python DB API module, and am hoping I can g
psycopg2, ensure that ROLLBACK is
called if the user never explicitly calls close()?
Thanks for any assistance that can be provided.
---
Israel Brewster
Systems Analyst II
Ravn Alaska
5245 Airport Industrial Rd
Fairbanks, AK 99709
(907) 450-7293
s into the qmark style markers that the underlying
library provides, but before I go and re-invent the wheel, is there already
code that does this which I can simply use, or modify?
-------
Israel Brewster
Systems Analyst II
Ravn Alaska
5245 Airport Industrial Rd
On Nov 23, 2015, at 12:45 PM, Cameron Simpson <c...@zip.com.au> wrote:
>
> On 23Nov2015 12:22, Israel Brewster <isr...@ravnalaska.net> wrote:
>> On Nov 23, 2015, at 11:51 AM, Ian Kelly <ian.g.ke...@gmail.com> wrote:
>>> Concurrency, ugh.
>
> I'm a big
On Nov 23, 2015, at 1:43 PM, Chris Kaynor <ckay...@zindagigames.com> wrote:
>
> On Mon, Nov 23, 2015 at 2:18 PM, Israel Brewster <isr...@ravnalaska.net>
> wrote:
>
>> Of course, that last step could be interesting - implementing the block in
>> such a way a
On Nov 23, 2015, at 3:05 PM, Dennis Lee Bieber <wlfr...@ix.netcom.com> wrote:
>
> On Mon, 23 Nov 2015 08:54:38 -0900, Israel Brewster <isr...@ravnalaska.net>
> declaimed the following:
>
>> Concern: Since the master process is multi-threaded, it seems likely en
g if no
message is posted)? And is my concern justified, or just paranoid? Thanks for
any information that can be provided!
---
Israel Brewster
Systems Analyst II
Ravn Alaska
5245 Airport Industrial Rd
Fairbanks, AK 9970
On Nov 23, 2015, at 11:51 AM, Ian Kelly <ian.g.ke...@gmail.com> wrote:
>
> On Mon, Nov 23, 2015 at 12:55 PM, Ian Kelly <ian.g.ke...@gmail.com> wrote:
>> On Mon, Nov 23, 2015 at 10:54 AM, Israel Brewster <isr...@ravnalaska.net>
>> wrote:
>>> Concer
for any feedback that can be provided.
---
Israel Brewster
Systems Analyst II
Ravn Alaska
5245 Airport Industrial Rd
Fairbanks, AK 99709
(907) 450-7293
---
> On Nov 3, 2015, at 8:05 AM, Israel Brewster &
gain. Is there some
way I can fix this so I can use sockets as well as gather stats from my
application? Thanks.
---
Israel Brewster
Systems Analyst II
Ravn Alaska
5245 Airport Industrial Rd
Fairbanks, AK 99709
(907) 450-7293
-
On Oct 25, 2015, at 4:05 PM, MRAB <pyt...@mrabarnett.plus.com> wrote:
>
> On 2015-10-23 17:35, Israel Brewster wrote:
>> tl;dr: I've been using the multiprocessing module to run some
>> calculations in the background of my CherryPy web app, but apparently
>> thi
On Oct 25, 2015, at 3:40 PM, Dennis Lee Bieber <wlfr...@ix.netcom.com> wrote:
>
> On Fri, 23 Oct 2015 08:35:06 -0800, Israel Brewster <isr...@ravnalaska.net>
> declaimed the following:
>
>> tl;dr: I've been using the multiprocessing module to run some calculatio
On Oct 25, 2015, at 6:48 PM, Chris Angelico <ros...@gmail.com> wrote:
>
> On Sat, Oct 24, 2015 at 3:35 AM, Israel Brewster <isr...@ravnalaska.net>
> wrote:
>>
>> Ideally, this recalculation process would happen in the background. There is
>> no need for t
tl;dr: I've been using the multiprocessing module to run some calculations in the background of my CherryPy web app, but apparently this process sometimes gets stuck, causing problems with open sockets piling up and blocking the app. Is there a better way?The (rather wordy) details:I have a
On Jan 13, 2015, at 6:27 AM, William Ray Wing w...@mac.com wrote:
On Jan 9, 2015, at 12:40 PM, Israel Brewster isr...@ravnalaska.net wrote:
I have a long-running python/CherryPy Web App server process that I am
running on Mac OS X 10.8.5. Python 2.7.2 running in 32-bit mode (for now, I
On Jan 13, 2015, at 8:26 AM, Skip Montanaro skip.montan...@gmail.com wrote:
Assuming you have gdb available, you should be able to attach to the
running process, then set a breakpoint in relevant functions (like
exit() or abort()). Once there, you can pick through the C stack
manually (kind
/python-list
---
Israel Brewster
Systems Analyst II
Ravn Alaska
5245 Airport Industrial Rd
Fairbanks, AK 99709
(907) 450-7293
---
--
https://mail.python.org/mailman/listinfo/python-list
I have a long-running python/CherryPy Web App server process that I am running on Mac OS X 10.8.5. Python 2.7.2 running in 32-bit mode (for now, I have the code in place to change over to 64 bit, but need to schedule the downtime to do it). On the 6th of this month, during normal operation from
Ah, I see. That makes sense. Thanks.
---
Israel Brewster
Systems Analyst II
Ravn Alaska
5245 Airport Industrial Rd
Fairbanks, AK 99709
(907) 450-7293
---
BEGIN:VCARD
VERSION:3.0
N:Brewster;Israel;;;
FN:Israel
On Dec 2, 2014, at 4:33 AM, random...@fastmail.us wrote:
On Mon, Dec 1, 2014, at 15:28, Israel Brewster wrote:
For example, I have a URL on my Cherrypy app that updates some local
caches. It is accessed at http://server/admin/updatecaches So if I
start typing http://server/a, for example
I don't know if this is a cherrypy specific question (although it will be implemented in cherrypy for sure), or more of a general http protocol question, but when using cherrypy to serve a web app, is there anyway to prevent browser prefetch? I'm running to a problem, specifically from Safari on
On Dec 1, 2014, at 12:50 PM, Ned Batchelder n...@nedbatchelder.com wrote:
On 12/1/14 4:26 PM, Tim Chase wrote:
On 2014-12-01 11:28, Israel Brewster wrote:
I don't know if this is a cherrypy specific question (although it
will be implemented in cherrypy for sure), or more of a general
http
the
are you just previewing, or do you actually want the page
information. Perhaps there are more.
-tkc
--
https://mail.python.org/mailman/listinfo/python-list
---
Israel Brewster
Systems Analyst II
Ravn Alaska
5245 Airport Industrial Rd
Fairbanks
So I have a python module that I have written which uses CFFI to link against a C library I have compiled. Specifically, it is a Database driver for the 4th dimension database, using an open-source C library distributed by the 4D company. I have tested the module and C code on a couple of
82 matches
Mail list logo