Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: Print Error
Post: Print Error

Could somebody please tell me why the variable 'collapse_steps' is not returned in the variable 'collapse_times'? collapse_duration = 60.0 collapse_steps = 2 # can be changed by USER collapse_start...
DaveG General Coding Help 1 1,099 Apr-07-2022, 01:08 AM
    Thread: cs.collections error
Post: RE: cs.collections error

This is the script up to the problem line. All the variables look good up to the error point. I'm assuming cs.collections is a function of Matplotlib, would it be that that function is missing from my...
DaveG General Coding Help 7 1,769 Apr-06-2022, 09:02 AM
    Thread: cs.collections error
Post: RE: cs.collections error

I agree I need to learn more but this is a rush to meet a thesis deadline. It would help if I new what 'csp=cs.collections[0].get_paths()[2]' is trying to do. it seems to take the collected values fr...
DaveG General Coding Help 7 1,769 Apr-06-2022, 08:52 AM
    Thread: cs.collections error
Post: RE: cs.collections error

This is a script written in the past by someone now lost and I am trying to debug it. I'm a user of the output and have no real programming skills (I'm working blind here). I tried to shift it over to...
DaveG General Coding Help 7 1,769 Apr-06-2022, 06:33 AM
    Thread: Is Matplotlib.pyplot Loaded
Post: RE: Is Matplotlib.pyplot Loaded

This is a script written in the past by someone now lost and I am trying to debug it. I'm a user of the output and have no real programming skills (I'm working blind here). I tried to shift it over to...
DaveG General Coding Help 2 1,331 Apr-06-2022, 06:12 AM
    Thread: cs.collections error
Post: cs.collections error

Hi I have this error from the python 2.7 code below. Can someone help please? Much appreciated. Error:Traceback (most recent call last): File "C:/Users/David/PycharmProjects/pythonProject2/venv/ini...
DaveG General Coding Help 7 1,769 Apr-06-2022, 05:27 AM
    Thread: SyntaxError
Post: RE: SyntaxError

Thank you
DaveG General Coding Help 2 1,073 Apr-06-2022, 05:20 AM
    Thread: SyntaxError
Post: SyntaxError

Hi I'm getting a syntax error on the print to file. Can someone correct me please? Error:C:\Python27\python.exe C:/Users/David/PycharmProjects/pythonProject2/venv/init_collapse.py File "C:/Users/Da...
DaveG General Coding Help 2 1,073 Apr-06-2022, 02:16 AM
    Thread: Is Matplotlib.pyplot Loaded
Post: Is Matplotlib.pyplot Loaded

Is there someway I can find out if the module matplotlib.pyplot is available to me while running a Python2.7 script. I have imported matplotlib successfully but I don't know if it includes matplotlib....
DaveG General Coding Help 2 1,331 Apr-06-2022, 01:05 AM
    Thread: Transform 3 Columns into Single Column
Post: RE: Transform 3 Columns into Single Column

Thank you so much Pedroski55, it worked a treat. The only issue is that the transformation to individual CVS files left off the decimal places. Is there something that I can include in the script tha...
DaveG General Coding Help 8 1,890 Apr-04-2022, 08:22 AM
    Thread: Transform 3 Columns into Single Column
Post: RE: Transform 3 Columns into Single Column

Many thanks Pedroski55 I'm getting the following error on this code. Would you have any idea of the problem. Error:C:\Python3\python.exe C:/Users/David/PycharmProjects/pythonProject2/venv/Subspend_...
DaveG General Coding Help 8 1,890 Apr-04-2022, 07:35 AM
    Thread: Transform 3 Columns into Single Column
Post: RE: Transform 3 Columns into Single Column

It is a csv far to large for excel to handle, 1 million+ rows. I just don't have python skills to do this and I can think of no other way.
DaveG General Coding Help 8 1,890 Apr-03-2022, 11:54 PM
    Thread: Transform 3 Columns into Single Column
Post: Transform 3 Columns into Single Column

I Have a file comprising 3 columns of data and I would like to transform these columns into a single column, one following the other e.g. below. Could someone kindly tell me how to write the code to d...
DaveG General Coding Help 8 1,890 Apr-03-2022, 11:11 PM
    Thread: Changing Values in a List
Post: Changing Values in a List

I would like to replace all the values (1.3million) in column 3 with 0.00000000. Can someone please advise how I insert this in my code please? file = 'Z_Before_After.txt' data = np.genfromtxt(file) ...
DaveG Data Science 1 1,299 Apr-03-2022, 08:35 AM
    Thread: Print List to Terminal
Post: Print List to Terminal

How do I return all the values of the variable to the terminal rather than just the start and finish of the array please. elev_t1 = deepcopy(kelevation) print(elev_t0)From terminal [[ -50.6816 -50....
DaveG General Coding Help 2 1,442 Apr-02-2022, 06:54 AM
    Thread: Print to a New Line when Appending File
Post: Print to a New Line when Appending File

How can I force appended data to a new line when writing out to an existing file please? The first line in my output file should be 943 814 2 943 814 23560581.70300000 3560591.70300000 3560601.703000...
DaveG General Coding Help 0 1,231 Mar-30-2022, 04:14 AM
    Thread: Writing to External File
Post: RE: Writing to External File

How do I ensure that when adding to the file it starts on a new line?
DaveG General Coding Help 9 2,518 Mar-30-2022, 02:18 AM
    Thread: Mytime Problems
Post: Mytime Problems

Hi I'm getting the error with the use of mytime. Is this part of a library? Thank you, Dave Error:Traceback (most recent call last): File "C:/Users/David/PycharmProjects/pythonProject2/venv/init_...
DaveG General Coding Help 1 1,015 Mar-30-2022, 02:04 AM
    Thread: Writing to External File
Post: RE: Writing to External File

Awesome, thank you. I just posted another problem though. I am not a progrommer, just trying to get some old script by others working.
DaveG General Coding Help 9 2,518 Mar-30-2022, 02:01 AM
    Thread: Writing to External File
Post: RE: Writing to External File

I'm still stuck with this printing error from the script extract below. Help please!!!! Error:Traceback (most recent call last): File "C:/Users/David/PycharmProjects/pythonProject2/venv/init_collap...
DaveG General Coding Help 9 2,518 Mar-29-2022, 11:07 PM

User Panel Messages

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