Python Forum
Looking for a Guide Through the Labyrinth
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Looking for a Guide Through the Labyrinth
#1
I am a semi-retired Research Scientist who bumbled his way through FORTRAN II programming more years ago that I am willing to admit.

I have a Quantum Chemistry (QC) program that generates rather large text files that contain data tables that I would like to extract in order to generate an input file for another program. I know that I can use the function np.genfromtxt to extract the data, but how do I find a specific text file in the larger QC output file?

Iā€™m not looking for someone to write the python3 code for me, but rather, as the title suggests pointers towards solutions to the problem

Many thanks, in advance
Reply
#2
First need to know the structure of the 'rather large text file'
the file can be opened and read in chunks, but to do that efficiently, the chunk sizes should be some factor of the structure size.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Complete Guide to Shodan Calli 4 2,207 Jul-18-2022, 04:29 PM
Last Post: Calli
  New User online Guide NAP1947 1 1,507 Sep-06-2020, 04:36 PM
Last Post: Larz60+
  Not able to crack a simple visualization ā€“ missing something basic ā€“ plz guide darpInd 4 2,728 Mar-27-2020, 09:26 AM
Last Post: darpInd
  "Up to but not including" (My personal guide on slicing & indexing) Drone4four 5 2,823 Nov-20-2019, 09:38 PM
Last Post: newbieAuggie2019
  [split] Python Guide / Document? kumatul 2 2,693 Jan-16-2019, 12:49 AM
Last Post: micseydel
  Python Guide / Document? Qui_Ten 1 2,782 Jan-13-2019, 07:50 AM
Last Post: Gribouillis

Forum Jump:

User Panel Messages

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