Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: Calculating distances between adjacent points
Post: Calculating distances between adjacent points

I have a code which will calculate the distances between all atoms in a cartesian coordinate system. However, I only want it to calculate it between the adjacent atoms e.g 1-2, 2-3, 3-4, 4-5, etc. Ca...
chascp Data Science 1 1,596 Feb-19-2020, 08:03 PM
    Thread: Error With Reading Files In Directory And Calculating Values
Post: RE: Error With Reading Files In Directory And Calc...

(Feb-15-2020, 01:54 PM)Gribouillis Wrote: you probably mean pathname = os.path.join(dir, filename)Thank you I just realised this but now have a second error regarding an array. it reads Traceback (...
chascp General Coding Help 2 2,417 Feb-15-2020, 01:57 PM
    Thread: Error With Reading Files In Directory And Calculating Values
Post: Error With Reading Files In Directory And Calculat...

I'm trying to run the following code which carries out some calculations on files I have data for with functions for CentreOfMass and SED. directory = ["./nrl169","./nrl177"] frame = list() J = ...
chascp General Coding Help 2 2,417 Feb-15-2020, 01:14 PM
    Thread: Removing Certain Numbers From File
Post: RE: Removing Certain Numbers From File

(Feb-07-2020, 03:45 PM)paul18fr Wrote: Hi My advice is by:creating an array with all the numbers using the modulo property (see numpy.mod) by an additional column then looking for values where th...
chascp General Coding Help 2 2,075 Feb-07-2020, 04:04 PM
    Thread: Removing Certain Numbers From File
Post: Removing Certain Numbers From File

Hey Everyone, I have a data file full of various numbers e.g. 1 2 3 1 180 2 3 4 1 180 3 4 5 1 180 4 5 6 1 180 5 6 7 1 180 6 7 8 1 180 7 8 9 1 180 8 9 10 1 180 9 10 11 1 180 10 11 12 1 180 ...
chascp General Coding Help 2 2,075 Feb-07-2020, 03:23 PM

User Panel Messages

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