On Thu, Apr 13, 2017 at 03:41:09PM -0400, Stephen P. Molnar wrote:
> I have an list generated by: s = np.linspace(start,finish,points)
>
> and an array D:
>
> [ 0. 2.0598013.60937686 3.32591826 2.81569212]
> [ 2.0598010. 4.71452879 4.45776445 4.00467382]
> [ 3.
I am attempting to port a program that I wrote about 20 years ago from
FORTRAN to Python. So far, I have bumbled my way to the point that I
can get all of the input data resulting from a quantum mechanical
calculation of a very simple organic molecule in to a Python program,
but am encounterin
On 13/04/17 17:32, Rafael Knuth wrote:
> Is there a way to split these two into separate steps:
> a) creating a .json file
> b) manipulating it (a, r, w ...)
Of course.
> What if I just wanted to create a .json file and do nothing with it?
>
> import json
> file_name = "my_numbers.json"
>
> The
Hi Christina,
you should use an editor or an IDE (Integrated Development Environment) (a
quite good and my favorite IDE is PyCharm
https://www.jetbrains.com/pycharm/download/#section=windows ), write the
script in it,then save, then run it from the IDE or from command line with
similar command:
p
On Thu, Apr 13, 2017 at 12:32 PM, Rafael Knuth
wrote:
> Is there a way to split these two into separate steps:
> a) creating a .json file
> b) manipulating it (a, r, w ...)
>
> Example:
>
> "import json
> number_list = [1, 2, 3, 4, 5, 6, 7, 8, 9]
> file_name = "my_numbers.json"
> with open(file_n
If you are going to send it to your professor. Maybe just copy all your
result to a txt file and send the text?
Qiao
Qiao Qiao
Web Engineer
On Thu, Apr 13, 2017 at 10:33 AM, Christina Hammer <
hamme...@mail.montclair.edu> wrote:
> Hi,
> I downloaded the newest version of Python on my windows co
On 13/04/17 17:10, marcus lütolf wrote:
> Dear experts, Mats
> I have found the solution, I put the counting variable at the wrong place:
I don;t think so, what you have done now is count the times
through the loop, but thats not (always) the same as the
number of times the function gets called,
On 13/04/17 15:33, Christina Hammer wrote:
> I downloaded the newest version of Python on my windows computer and am
> having some trouble using it. I need to save my work because I am using it
> for an online class and am going to have to send it to my professor. But I
> cannot access a tool bar
Is there a way to split these two into separate steps:
a) creating a .json file
b) manipulating it (a, r, w ...)
Example:
"import json
number_list = [1, 2, 3, 4, 5, 6, 7, 8, 9]
file_name = "my_numbers.json"
with open(file_name, "w") as a:
json.dump(number_list, a)
What if I just wanted to cr
Hi,
I downloaded the newest version of Python on my windows computer and am
having some trouble using it. I need to save my work because I am using it
for an online class and am going to have to send it to my professor. But I
cannot access a tool bar that would allow me to save it. I'm not sure if
Dear experts, Mats
I have found the solution, I put the counting variable at the wrong place:
> #!/usr/bin/python3
> import sys, time
> import RPi.GPIO as gpio
>
> gpio.setmode(gpio.BOARD)
> gpio.setup(23, gpio.IN)
> count = 0
> def mein_callback(pin):
> count += 1
> print('PIR 1 aktivie
.npy is numpy array. Thanks it's ok i manage to save it..
On Tuesday, 11 April 2017, 8:23, Steven D'Aprano wrote:
On Mon, Apr 10, 2017 at 02:10:34PM +, Allan Tanaka via Tutor wrote:
> Hi.
> Is there a way to save module type data into .npy file that can be used
> latter?
What'
12 matches
Mail list logo