##### Results
Search Results
Post Author Forum Replies Posted [asc]
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
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

 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

 Why didn't I catch that before??!! Thanks
qmfoam General Coding Help 5 1,444 Aug-17-2020, 09:02 PM

 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

 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
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