Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: os.path.join
Post: RE: os.path.join

(Nov-07-2020, 06:14 PM)bowlofred Wrote: Quote:Help on function join in module posixpath: join(a, *p) Join two or more pathname components, inserting '/' as needed. If any component is an ab...
qmfoam General Coding Help 2 813 Nov-08-2020, 04:03 PM
    Thread: os.path.join
Post: os.path.join

This has me confused as to why it does not work: import os PARENT_DIR = '/Volumes/Sidekick/SEER/Trip' SOURCE_DIR = '/data/source' # first do as concatenation and show result OUT_DIR = PARENT_DIR + ...
qmfoam General Coding Help 2 813 Nov-07-2020, 06:06 PM
    Thread: fraction module: can you stop the reducing?
Post: fraction module: can you stop the reducing?

when you import the fraction module, you can instantiate a Fraction instance: from fractions import Fraction as frac a = frac(1,3) b = frac(1,6) c = a+b print('sum is {0}'.format©) 1/2 But I w...
qmfoam General Coding Help 1 840 Oct-10-2020, 05:37 PM
    Thread: Mathplotlib - passing reference to axs to function
Post: RE: Mathplotlib - passing reference to axs to func...

Why didn't I catch that before??!! Thanks
qmfoam General Coding Help 5 1,444 Aug-17-2020, 09:02 PM
    Thread: Mathplotlib - passing reference to axs to function
Post: RE: Mathplotlib - passing reference to axs to func...

Dean I had previously tried what you are suggesting: def showEvents(ax, events): for ev in events.values(): ax.axvlines(ev[6], ev[1], ev[2], color = ev[3], \ linestyle = ev[...
qmfoam General Coding Help 5 1,444 Aug-14-2020, 05:50 PM
    Thread: Mathplotlib - passing reference to axs to function
Post: Mathplotlib - passing reference to axs to function

I have defined a series of subplots: fig, ((ax1, ax3), (ax2, ax4), (ax5, ax7), (ax6, ax8)) = plt.subplots(4,2) fig.subplots_adjust(left = .1, right = 1., bottom = .1, \ top = .9, w...
qmfoam General Coding Help 5 1,444 Aug-12-2020, 04:10 PM
    Thread: list.index() help
Post: RE: list.index() help

buren, bowlofred, deanhystad Thanks for the info. I like the idea of using numpy so will go with that.
qmfoam General Coding Help 4 984 Aug-07-2020, 07:25 PM
    Thread: list.index() help
Post: list.index() help

I have a 2D list called sampleArray. type(sampleArray) shows that it is a list. A small sample of the list is: sampleArray = [['2020-07-22', 10256, 296, 57, 10481, 49, 389377, -10, -10, 15, 25650, ...
qmfoam General Coding Help 4 984 Aug-06-2020, 07:53 PM

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020