Re: [melbourne-pug] FroSolPy Fronius Inverter Data Collector / Code Feedback

2018-05-17 Thread paul sorenson
Hey David,

I probably can't run that on my inverter but I wrote some similar code
for Aurora brand a while back.

My inverter came with a CD-ROM which would push a cloud somewhere but I
reckon it would be fun to crowd source really granular data.

cheers


On 05/17/2018 04:35 PM, David Crisp wrote:
> Gday,
>
> I'm not sure if this is appropriate to ask for or not but I was
> wondering if there was anybody who would be happy to do a quick code
> review / code feedback on my Fronius Solar module I have written  and
> give me some feedback on it.  
>
> I have been working on this module for a while and I think I'm
> beginning to not be able to see the trees for the forest.   It is NOT
> finished yet but it does what I need it to do for the moment.
>
> There's no unit tests though.  I haven't worked out how to do these
> for dynamic data collected from APIs etc which could return anything.
>
> Currently being unemployed and not having access to a development team
> I don't get a chance to drop code in front of more experienced people
> and get ideas from them.
>
> The module should be able to be found at the following location.
> https://github.com/dcrispgit/FroSolPy
>
> Bonus Points if you have your own Fronius solar inverter and you can
> actually run this code and retrieve data from it.
>
> If it's not appropriate to ask that then feel free to ignore or point
> me in the direction of somewhere that can help.
>
> Regards, 
> David
>
>
> ___
> melbourne-pug mailing list
> melbourne-pug@python.org
> https://mail.python.org/mailman/listinfo/melbourne-pug

___
melbourne-pug mailing list
melbourne-pug@python.org
https://mail.python.org/mailman/listinfo/melbourne-pug


Re: [melbourne-pug] Joblib question

2018-03-09 Thread paul sorenson
Mike,

Are there unique features of joblib that you need to use?

Scraping web pages is often a good candidate for asyncio based models.

cheers


On 03/08/2018 11:41 PM, Mike Dewhirst wrote:
> https://media.readthedocs.org/pdf/joblib/latest/joblib.pdf
>
> I'm trying to make the following code run in parallel on separate CPU
> cores but haven't had any success.
>
> def make_links(self): for db in databases: link =
> create_useful_link(self, Link, db) if link: scrape_db(self, link, db)
> This is a web scraper which is working nicely in a leisurely
> sequential manner.  databases is a list of urls with gaps to be filled
> by create_useful_link() which makes a link record from the Link class.
> The self instance is a source of attributes for filling the url gaps.
> self is a chemical substance and the link record url field when
> clicked in a browser will bring up that external website with the
> chemical substance selected for researching by the viewer. If
> successful, we then fetch the external page and scrape a bunch of
> interesting data from it and turn that into substance notes.
> scrape_db() doesn't return anything but it does create up to nine
> other records.
>
> from joblib import Parallel, delayed
>
> class Substance( etc ..
> ...
> def make_links(self):
> #Parallel(n_jobs=-2)(delayed(
> #scrape_db(self, create_useful_link(self, Link, db), db) 
> for db in databases
> #))
> I'm getting a TypeError from Parallel delayed() - can't pickle
> generator objects
>
> So my question is how to write the commented code properly? I suspect
> I haven't done enough comprehension.
>
> Thanks for any help
>
> Mike
>
>
> ___
> melbourne-pug mailing list
> melbourne-pug@python.org
> https://mail.python.org/mailman/listinfo/melbourne-pug

___
melbourne-pug mailing list
melbourne-pug@python.org
https://mail.python.org/mailman/listinfo/melbourne-pug


Re: [melbourne-pug] How do I become a python developer?

2017-09-07 Thread paul sorenson
There is no one size fits all way. Every employer will have certain
skills they value.

There are plenty of online courses and tutorials - the more python you
do, the better you will be. Get involved in some python open source
projects and start fixing bugs.

good luck


On 9/3/2017 10:04 PM, Dylan Pereira wrote:
> Hi,
>
> I just had a general question. I have used python before and have
> loved it. I would love to work as a python developer. I don't have any
> previous experience except for writing a few python scripts in a
> previous role. What would employers like to see when they hire a
> junior python dev. What does it take to break into the industry?
>
> Best Regards,
> Dylan
>
>
> ___
> melbourne-pug mailing list
> melbourne-pug@python.org
> https://mail.python.org/mailman/listinfo/melbourne-pug

___
melbourne-pug mailing list
melbourne-pug@python.org
https://mail.python.org/mailman/listinfo/melbourne-pug


Re: [melbourne-pug] pycon 2017

2017-05-02 Thread paul sorenson

On 05/01/2017 10:41 PM, Ben Finney wrote:
> paul sorenson <new...@metrak.com> writes:
>
>> Heading to pycon 2017?
> As far as I know, “PyCon 2017” refers to the US-based event in Portland
> <URL:https://us.pycon.org/2017/>.
this one 
> Do you mean PyCon AU 2017 <URL:https://2017.pycon-au.org/>, which is in
> the city for which this is a forum?
>> I will be there along with some others from Facebook, please come and
>> introduce yourself.
> When you say “from Facebook”, are these people who you know as users on
> that service? Or are you saying you're a Facebook employee? Or something
> else?
I am a facebook employee and spend most of my day hacking on python.
>
>> Aside from pycon if you are in the Bay area and up for a beer please
>> get in touch.
> Thanks for the invitation :-)
>
No problem.


___
melbourne-pug mailing list
melbourne-pug@python.org
https://mail.python.org/mailman/listinfo/melbourne-pug


Re: [melbourne-pug] pycon 2017

2017-05-02 Thread paul sorenson
Mike,

Close - some of my colleagues will be presenting (in Portland).

cheers


On 05/02/2017 05:17 AM, Mike Dewhirst wrote:
> On 2/05/2017 3:41 PM, Ben Finney wrote:
>> paul sorenson <new...@metrak.com> writes:
>>
>>> Heading to pycon 2017?
>> As far as I know, “PyCon 2017” refers to the US-based event in Portland
>> <URL:https://us.pycon.org/2017/>.
>>
>> Do you mean PyCon AU 2017 <URL:https://2017.pycon-au.org/>, which is in
>> the city for which this is a forum?
>>
>>> I will be there along with some others from Facebook, please come and
>>> introduce yourself.
>
> Paul is a distinguished scientist and engineer from Melbourne with
> some amazing accomplishments. I believe he was recruited recently by
> Facebook to predict their networking requirements. Python is part of
> his palette. If he presents a session at Pycon I will definitely attend.
>
>
>> When you say “from Facebook”, are these people who you know as users on
>> that service? Or are you saying you're a Facebook employee? Or something
>> else?
>>
>>> Aside from pycon if you are in the Bay area and up for a beer please
>>> get in touch.
>> Thanks for the invitation :-)
>>
>
> ___
> melbourne-pug mailing list
> melbourne-pug@python.org
> https://mail.python.org/mailman/listinfo/melbourne-pug

___
melbourne-pug mailing list
melbourne-pug@python.org
https://mail.python.org/mailman/listinfo/melbourne-pug


[melbourne-pug] pycon 2017

2017-05-01 Thread paul sorenson
Heading to pycon 2017?

I will be there along with some others from Facebook, please come and
introduce yourself.

Aside from pycon if you are in the Bay area and up for a beer please get
in touch.

cheers


___
melbourne-pug mailing list
melbourne-pug@python.org
https://mail.python.org/mailman/listinfo/melbourne-pug


Re: [melbourne-pug] Multi-line subplots

2016-05-27 Thread paul sorenson
Kevin,

If you want multiple plots (the 3-4 stations in your question?) in your
matplotlib output you provide that to the matplotlib.pyplot.subplots()
function.  To draw multiple lines on a single plot you just call as many
plotting commands on each of the axis objects returned from the
subplots() call above.  If you want to plot "directly" from pandas IIRC
you want to put each of your time series in its own column.  There are
packages such as seaborn that have functions specifically for plotting
time series.

There are stacks of examples over on the matplotlib and pandas - have
you checked the gallery pages for something that looks kind of like what
you want?

Once you figure out the plotting strategy - you get your dataframe into
the shape you need as appropriate.  set_index(), stack(), unstack(),
groupby() and pivot functions are your friend.

cheers

On 05/26/2016 05:20 PM, Nicholas Mellor wrote:
>
> Hi Kevin,
>
>  
>
> What’s the plotting software you’re using?
>
>  
>
> Nick
>
>  
>
> *From:*melbourne-pug
> [mailto:melbourne-pug-bounces+nicholas.mellor=medibank.com...@python.org]*On
> Behalf Of *Kevin Shackleton
> *Sent:* Thursday, 26 May 2016 10:56 PM
> *To:* Melbourne Python Users Group 
> *Subject:* [melbourne-pug] Multi-line subplots
>
>  
>
> Hi All,
>
> I am making heavy going of what should be quite concise code.
>
> I monitor messages (about 30 sorts) coming from several (3 or 4)
> stations.  I make a count of the messages per station per day, going
> back 30 days (0, -1, -2 . .), like this:
>
> Message  Station  Day  Count
>
> A   A  0  5
>
> A   A  -1 2
> A   B  0 13
> A   B  -1 3
> A   C  0  2
>
> A   C  -1 2
> B   A  0  1
> B   A  -121
> B   B  0 18
> B   B  -134
> B   C  0   7
>
> B   C  -138
> C   A  etc . .
>
> To make it quick and easy for the operating staff to review the site
> status, I want to make about 30 plots (in a single column on the
> canvas), each with the X axis going from -30 to 0 days, Y axis of
> Count and 3 or 4 lines showing the message count for each station.
>
> I'm having trouble finding how to subplot the graph page and print
> multiple lines in each sub-plot.
>
> There is also the need to fill in missing values to not misrepresent
> having zero messages for a message/station/day, consequently I was
> trying to run the data via a pivot_table(fill_value=0).
>
> A clue or reference would be greatly appreciated,
>
> Regards,
>
> Kevin.
>
>
> __
> This email has been scanned by the Symantec Email Security.cloud service.
> For more information please visit http://www.symanteccloud.com
> __
>
>
> __
> This email has been scanned by the Symantec Email Security.cloud service.
> For more information please visit http://www.symanteccloud.com
> __
>
>
> ___
> melbourne-pug mailing list
> melbourne-pug@python.org
> https://mail.python.org/mailman/listinfo/melbourne-pug

___
melbourne-pug mailing list
melbourne-pug@python.org
https://mail.python.org/mailman/listinfo/melbourne-pug


Re: [melbourne-pug] Agile

2016-01-30 Thread paul sorenson
Yeah as soon as some new methodology comes along an industry quickly
grows up around it promoting "the right way" and often losing sight of
the core meaning.

Companies who are truly agile would have no insecurities hiring great
technical talent with "no prior agile experience" as long as the
candidate showed a willingness to operate in an agile way.

Also key hiring decisions are often made by people who have no
development experience themselves and so are constrained to "go by the
book".

On 30/01/16 00:18, Aidan Lister wrote:
> Send me your resume or GitHub! Any developer worth their chops is going
> to slot into an agile workplace in a heartbeat. People over process, we
> are just looking for great devs!
> 
> Your reflection sounds like a short sighted HR level decision, unless
> you were going for a team lead role where you'd be expected to drive the
> agile processes?
> 
> 
> On Sat, 30 Jan 2016 at 2:59 PM, Brian May  > wrote:
> 
> Hello All,
> 
> I recently had a job application rejected, for a Python Role, with the
> following explanation:
> 
>"Although we were impressed by your experience and passion for
>technology (particularly Python/Django), we are looking for more
>hands on experience working in an agile team environment.
> 
> I suspect a lot of employer's consider Agile very important, and this
> might be a reason why I haven't had a lot of success so far with my job
> search.
> 
> However, there seems to be this problem that I can't get experience
> "working in an agile team" without getting one of these jobs, which I am
> unlikely to get because (in the view of the person making the decision)
> I haven't had the "hands on experience".
> 
> i.e. in Python that would be:
> 
> class Experience(object):
> ...
> 
> def get_job(experience):
> required_experience = 
> experience = get_additional_experience_required(experience,
> required_experience)
> while True:
> try:
> job = apply_for_job(experience)
> ...
> attend_interview(job, experience)
> ...
> return job
> except ApplicationRejected:
> pass
> 
> 
> def get_additional_experience_required(experience, required_experience):
> while experience < required_experience:
> job = get_job(experience)
> goto_work(job)
> experience = experience + perform_job(job)
> return experience
> 
> 
> if __name__ == "__main__":
> experience = Experience()
> while True:
> job = get_job(experience)
> try:
> while True:
> goto_work(job)
> experience = experience + perform_job(job)
> goto_home()
> goto_bed()
> except LostJob:
> pass
> 
> 
> Which is likely to produce a stack overflow error. However I don't think
> stackoverflow.com  is going to help me
> here. How do I fix the above code?
> 
> (1st draft only: applying for a job should be multi-threaded, so I can
> have a number of open applications at any one time; there is also
> several problems with my get_experience_required function if get_job
> actually returned a result: e.g. no sleep and no catching the LostJob
> exception)
> 
> Apparently just having experience in using the developmental tools, such
> as git, Jenkins, Gerrit, Tox, github, Travis, etc is not sufficient. Nor
> is my experience in a being a sole developer of a large and complicated
> open source Django based application. I suspect I have used principles
> of Agile development already, however not as part of a formal
> development team.
> 
> I just wondered if anybody here had any tips for how I might go about
> convincing potential employers that I can participate in an formal
> "Agile
> team environment"?
> 
> Yes, I could read up more about the theory of Agile programming, however
> I think they want practical experience, not theoretical knowledge.
> 
> Thanks.
> --
> Brian May >
> https://linuxpenguins.xyz/brian/
> ___
> melbourne-pug mailing list
> melbourne-pug@python.org 
> https://mail.python.org/mailman/listinfo/melbourne-pug
> 
> 
> 
> ___
> melbourne-pug mailing list
> melbourne-pug@python.org
> https://mail.python.org/mailman/listinfo/melbourne-pug
> 
___
melbourne-pug mailing list
melbourne-pug@python.org