Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

read matrix from particular line of scp file #16

Closed
wants to merge 5 commits into from
Closed

read matrix from particular line of scp file #16

wants to merge 5 commits into from

Conversation

wangkenpu
Copy link

No description provided.

@KarelVesely84
Copy link
Owner

Sorry, please, don't change the indent/formatting of the script. I cannot see what the actual changes to the code were... (or was it just the last commit, which changed the formatting?)
K.

@KarelVesely84
Copy link
Owner

And, why do you need a function to read a particular line in scp? Isn't it better to use the generator in a for loop for sequential access? and to create a 'dict' for the random access?

Then you could also load the 'scp' into a numpy array or a dict and then read with which is the remainder of the line that follows the key.

I think that your function is probably redundant, as there are other efficient ways to have the same functionality...
K.

@KarelVesely84
Copy link
Owner

Sorry, I don't see what your changes are, as you have changed the formatting. Closing the PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants