[Tutor] Problem with Spyder IDE in Anaconda3

2017-02-27 Thread Stephen P. Molnar
on to this problem. Nothing I found about the Kaspersky product told me where (or how) to find an exclusion list. I'm hoping that kind sole on this list can help em solve this problem. Thanks in advance. -- Stephen P. Molnar, Ph.D.Life is a fuzzy set www.molecular-modelin

Re: [Tutor] Problem with Spyder IDE in Anaconda3

2017-02-27 Thread Stephen P. Molnar
On 02/27/2017 02:29 PM, Marc Tompkins wrote: On Mon, Feb 27, 2017 at 10:46 AM, Stephen P. Molnar mailto:s.mol...@sbcglobal.net>> wrote: I had sent the following message to Anaconda Support: I have just installed anaconda3-4.3.0 and upgraded Spyder to v-3.1.3. When I open

[Tutor] Spyder IDE Anaconda3: Problem with Plt.savefig

2017-03-01 Thread Stephen P. Molnar
m doing wrong. It's probably a red-faced forehead slapper of a mistake on my part. A point in the right direction to properly naming the saved figure will be muck appreciated. Thanks in advance. -- Stephen P. Molnar, Ph.D.Life is a fuzzy set www.molecular-modeling.net

Re: [Tutor] Spyder IDE Anaconda3: Problem with Plt.savefig

2017-03-02 Thread Stephen P. Molnar
On 03/01/2017 08:32 PM, Alan Gauld via Tutor wrote: On 01/03/17 20:20, Stephen P. Molnar wrote: I have written a Python3 program to plot and save UV/VIS spectra from the results of an Orca quantum mechanical calculation. Caveat: This forum is for help on the core Python language and its

[Tutor] Extract Block of Data from a 2D Array

2017-03-31 Thread Stephen P. Molnar
have only succeeded in increasing my mental entropy. Help will be much appreciated. Thanks in advance. -- Stephen P. Molnar, Ph.D.Life is a fuzzy set www.molecular-modeling.net Stochastic and multivariate (614)312-7528 (c) Skype: smolnar1

Re: [Tutor] Extract Block of Data from a 2D Array

2017-03-31 Thread Stephen P. Molnar
On 03/31/2017 10:29 AM, Alan Gauld via Tutor wrote: On 31/03/17 13:19, Stephen P. Molnar wrote: I have a block of data extracted from a quantum mechanical calculation: How is this data stored? On paper? In a database? In XML? A CSV file? Plain text? The answer to that will go a long way to

Re: [Tutor] Extract Block of Data from a 2D Array

2017-03-31 Thread Stephen P. Molnar
On 03/31/2017 10:50 AM, Peter Otten wrote: Stephen P. Molnar wrote: I have a block of data extracted from a quantum mechanical calculation: CARTESIAN COORDINATES (A.U.) NO LB ZAFRAG MASS X Y Z 0 C 6.0

[Tutor] Euclidean Distances between Atoms in a Molecule.

2017-04-02 Thread Stephen P. Molnar
appreciate any pointers towards a solution. Thanks in advance. -- Stephen P. Molnar, Ph.D.Life is a fuzzy set www.molecular-modeling.net Stochastic and multivariate (614)312-7528 (c) Skype: smolnar1 ___ Tutor maillist - Tutor

Re: [Tutor] Euclidean Distances between Atoms in a Molecule.

2017-04-03 Thread Stephen P. Molnar
On 04/03/2017 05:36 AM, Peter Otten wrote: Stephen P. Molnar wrote: I am trying to port a program that I wrote in FORTRAN twenty years ago into Python 3 and am having a hard time trying to calculate the Euclidean distance between each atom in the molecule and every other atom in the molecule

[Tutor] Python 3.6 Multiply the elements of a 2D Array by the elements of a 1D Aeeay

2017-04-13 Thread Stephen P. Molnar
will be much appreciated. Thanks in advance. -- Stephen P. Molnar, Ph.D.Life is a fuzzy set www.molecular-modeling.net Stochastic and multivariate (614)312-7528 (c) Skype: smolnar1 ___ Tutor maillist - Tutor@python.org To

Re: [Tutor] Python 3.6 Multiply the elements of a 2D Array by the elements of a 1D Aeeay

2017-04-14 Thread Stephen P. Molnar
On 04/14/2017 04:21 AM, Peter Otten wrote: Stephen P. Molnar wrote: However, what I want to do is multiply each element ob D by each element of s and sum all of the products. If you *really* want this: sum_of_all_products = s.sum() * D.sum() example: s = [a b c] D = [[a1 a2] [a3 a4

Re: [Tutor] Python 3.6 Multiply the elements of a 2D Array by the elements of a 1D Aeeay

2017-04-14 Thread Stephen P. Molnar
On 04/14/2017 01:11 PM, Alan Gauld via Tutor wrote: On 14/04/17 13:41, Stephen P. Molnar wrote: The equation that I a want to evaluate (the one that I programmed in FORTRAN) is equation (7) in the attached scan of one of the pages of Stephen P. Molnar and James W. King, Theory and

Re: [Tutor] Python 3.6 Multiply the elements of a 2D Array by the elements of a 1D Aeeay

2017-04-17 Thread Stephen P. Molnar
On 04/16/2017 04:57 PM, Sergio Rojas wrote: On 04/14/2017 04:21 AM, Peter Otten wrote: Stephen P. Molnar wrote: However, what I want to do is multiply each element ob D by each element of s and sum all of the products. If you *really* want this: sum_of_all_products = s.sum() * D.sum

[Tutor] Python 3.6 Extract Floating Point Data from a Text File

2017-04-30 Thread Stephen P. Molnar
. Googling the problem has not resulted on any insight as to the solution, and any help will be much appreciated. Thanks in advance. -- Stephen P. Molnar, Ph.D.Life is a fuzzy set www.molecular-modeling.net Stochastic and multivariate (614)312-7528 (c) Skype: smolnar1

Re: [Tutor] Python 3.6 Extract Floating Point Data from a Text File

2017-04-30 Thread Stephen P. Molnar
On 04/30/2017 02:02 PM, Steven D'Aprano wrote: On Sun, Apr 30, 2017 at 06:09:12AM -0400, Stephen P. Molnar wrote: [...] I would have managed to extract input data from another calculation (not a Python program) into the following text file. LOEWDIN ATOMIC CH

[Tutor] Index Out of Range?List

2017-05-03 Thread Stephen P. Molnar
ion is how do I extract just one line of this file? Thanks in advance. -- Stephen P. Molnar, Ph.D.Life is a fuzzy set www.molecular-modeling.net Stochastic and multivariate (614)312-7528 (c) Skype: smolnar1 ___ Tutor maill

Re: [Tutor] Index Out of Range?List

2017-05-04 Thread Stephen P. Molnar
On 05/03/2017 08:32 PM, Steven D'Aprano wrote: On Wed, May 03, 2017 at 07:32:53PM -0400, Stephen P. Molnar wrote: [...] When it is run I get: IndexError: list index out of range That alone is useless to us. Please post the full traceback, starting from the line Traceback (most r

Re: [Tutor] Index Out of Range?List

2017-05-04 Thread Stephen P. Molnar
On 05/03/2017 08:51 PM, Alan Gauld via Tutor wrote: On 04/05/17 00:32, Stephen P. Molnar wrote: import numpy as np name = input("Enter Molecule ID: ") name = str(name) You don't need the str(), input always returns a string. name_in =name[:]+'.lac.dat' And you

[Tutor] python 3 np.savetxt(name_s, I_z) produces IndexError: tuple index out of range

2017-05-11 Thread Stephen P. Molnar
# -*- coding: utf-8 -*- """ Created on Sat Apr 8 15:17:07 2017 @author: comp Copyright (c) 2017 Stephen P. Molnar, Ph.D. """ import matplotlib.pyplot as plt import numpy as np start=1 finish=31 points=300 s = np.linspace(start, finish, points) np.savetxt('s&#

Re: [Tutor] python 3 np.savetxt(name_s, I_z) produces IndexError: tuple index out of range

2017-05-11 Thread Stephen P. Molnar
On 05/11/2017 02:26 PM, Stephen P. Molnar wrote: 0 down vote favorite I am using Spyder3.1.4 with Python 3.6.0 | Anaconda 4.3.0 (64-bit) | and IPython 6.0.0. My script is rather long and calculates a series of molecular indices using the same formula and a series of different coefficients

[Tutor] Subtract a 1D Array from a 2D Array

2017-05-13 Thread Stephen P. Molnar
error message: ValueError: operands could not be broadcast together with shapes (3,5) (1,3) My search for a solution has not been successful. -- Stephen P. Molnar, Ph.D.Life is a fuzzy set www.molecular-modeling.net Stochastic and multivariate (614)312-7528 (c) Skype

Re: [Tutor] Subtract a 1D Array from a 2D Array

2017-05-13 Thread Stephen P. Molnar
On 05/13/2017 11:16 AM, eryk sun wrote: On Sat, May 13, 2017 at 1:33 PM, Stephen P. Molnar wrote: I am using Python 3.6 in Anaconda3 Spyder IDE. I have two arrays: X Y Z a 0 0 0 2.059801 0

[Tutor] Pyuthon 3 Combine 1 D Arrays

2017-05-17 Thread Stephen P. Molnar
a n by 300 array where n is the number of single column arrays. I have tried zip, np.concatenate etc with only failure. Thanks in advance. -- Stephen P. Molnar, Ph.D.Life is a fuzzy set www.molecular-modeling.net Stochastic and multivariate (614)312-7528 (c) Skype

Re: [Tutor] Pyuthon 3 Combine 1 D Arrays

2017-05-18 Thread Stephen P. Molnar
]]) In [16]: np.hstack((a1,a2)).T Out[16]: array([[ 0.09042866, 0.63008665, 0.99106757], [ 0.99965848, 0.12334957, 0.43502637]]) Hope this helps! ze On 05/17/2017 08:50 PM, Stephen P. Molnar wrote: I'm beginning to think that I don't know how to ask the question as Google

Re: [Tutor] Coming from R, what's a good IDE editor? I've tried PyCharm and Spyder

2017-06-05 Thread Stephen P. Molnar
rg/mailman/listinfo/tutor ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor Here's how I start Spyder, in Xfce: /home/comp/Apps/anaconda3/bin/spyder -- Stephen P. Molnar, Ph.D.

[Tutor] Problem with Plot Legend

2017-06-13 Thread Stephen P. Molnar
the solution, but I'm beginning to think that I don't know just what the question that I should be asking, hence no results. A pointer towards thech solution to this problem will be much appreciated. Thanks in advance. -- Stephen P. Molnar, Ph.D. Consultant www.molecular-modeling.net (614)312-7528 (c) Skype: smolnar1 ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor

[Tutor] AttributeError: 'BezierPath' object has no attribute '_draw_solid'

2017-11-19 Thread Stephen P. Molnar
oblem (or problens) might be and would greatly appreciate a pointer towards the solution. Thanks in advance. -- Stephen P. Molnar, Ph.D.Life is a fuzzy set www.molecular-modeling.net Stochastic and multivariate (614)312-7528 (c) Skype: smolnar1 0.1

Re: [Tutor] AttributeError: 'BezierPath' object has no attribute '_draw_solid'

2017-11-19 Thread Stephen P. Molnar
On 11/19/2017 03:10 PM, William Ray Wing wrote: On Nov 19, 2017, at 11:36 AM, Stephen P. Molnar wrote: I have written a short Python 3 script to plot three curves (one plot) of data from a FORTRAN program. Initially the code worked and produced the plot which is attached. I have also

Re: [Tutor] AttributeError: 'BezierPath' object has no attribute '_draw_solid'

2017-11-20 Thread Stephen P. Molnar
orking. Actually, all of my programming experience has been with FORTRAN, starting with II in 1961 (yes, I am rather an old... an Organic Chemist. Let's start over, This is the code: #!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Multiple_Plots_2_b.py Copyright

Re: [Tutor] AttributeError: 'BezierPath' object has no attribute '_draw_solid'

2017-11-20 Thread Stephen P. Molnar
On 11/20/2017 09:34 AM, William Ray Wing wrote: On Nov 19, 2017, at 3:14 PM, Stephen P. Molnar mailto:s.mol...@sbcglobal.net>> wrote: On 11/19/2017 03:10 PM, William Ray Wing wrote: On Nov 19, 2017, at 11:36 AM, Stephen P. Molnar mailto:s.mol...@sbcglobal.net>> wrote: I ha

Re: [Tutor] AttributeError: 'BezierPath' object has no attribute '_draw_solid'

2017-11-20 Thread Stephen P. Molnar
On 11/20/2017 10:18 AM, Steven D'Aprano wrote: On Mon, Nov 20, 2017 at 08:18:41AM -0500, Stephen P. Molnar wrote: I'm not really looking for someone to do the programming for me. I know that the code works, because it did and produced the attached plot. I just don't know

[Tutor] Problem with Saved File

2019-04-05 Thread Stephen P. Molnar
when I import the saved file into QtiPlot it is a line vector. What am I missing in the savetxt statement? Thanks in advance -- Stephen P. Molnar, Ph.D. Life is a fuzzy set www.molecular-modeling.netStochastic and multivariate (614)312-7528(c) Skype: smolnar1

[Tutor] Problem with Saved File

2019-04-07 Thread Stephen P. Molnar
when I import the saved file into QtiPlot it is a line vector. What am I missing in the savetxt statement? Thanks in advance -- Stephen P. Molnar, Ph.D. Life is a fuzzy set www.molecular-modeling.netStochastic and multivariate (614)312-7528(c) Skype: smolnar1

[Tutor] Two Scripts, Same Commands, One Works, One Doesn't

2019-05-15 Thread Stephen P. Molnar
# -*- coding: utf-8 -*- """ calc_pdbqt Created on Mon May 13 09:50:54 2019 copyrignt (c) 2019 Stephen P. Molnar, Ph.D. All rights reserved """ import subprocess with open('ligand') as infile: ligand = infile.read().strip().split() for nv

Re: [Tutor] Two Scripts, Same Commands, One Works, One Doesn't

2019-05-16 Thread Stephen P. Molnar
cated one. On Wed, May 15, 2019 at 08:16:02AM -0400, Stephen P. Molnar wrote: I am writing scripts to semi-automate some of my Quantum Chemistry software and have encountered a problem that has me baffled. The two scripts have the same form, the only difference being the commands. One script works

[Tutor] Search for Text in File

2019-08-15 Thread Stephen P. Molnar
TypeError: 'str' object is not callable'. Assistance will be much appreciated. Thanks in advance. -- Stephen P. Molnar, Ph.D.Life is a fuzzy set http://www.Molecular-Modeling.net Multivariate and stochastic 614.312.7528 (c) Skype: smolnar1 ___