-
Notifications
You must be signed in to change notification settings - Fork 52
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
show users how to delete drives #549
Comments
I thought we were trying to push users toward creating a whole new |
you can just do |
Sure, but the connectivity needs to be cleared as well. See here for an example. I know we discussed on numerous occasions the possibility of packaging all this in a simple |
I think it's worth giving users a simple function if they can't do it non-trivially in a few lines of code. See: #550 |
Hello @jasmainak @rythorpe, I am Rajat Partani. I wanted to apply for GSOC 2023 with HNN and am searching for a good starting point. If this issue is not resolved yet, can I work on it? I am fairly new to open source, I will be really thankful for your guidance. |
go for it. |
Hi @jasmainak, I had a few queries regarding what to do
|
I think #550 needs to be finished. It's basically a small function to remove the connectivity and the drive itself. But tests are remaining. The test should check that the drive is indeed removed. Look at the other tests and the contributing guide to see how we do tests. Can you start a new PR from the branch in #550 ? |
Okay will work on the test section. If many rebase errors come up with #550 can I replicate the changes in the latest branch of master, write the tests and make a single PR? |
If you're comfortable with cherry picking, I'd recommend branching from master and then cherry picking the single commit in #550. Then you won't have to worry about rebasing if you run into conflicts in the test files. |
+1 for using chery-pick ! |
Sure I'll go with cherry pick |
Hey @jasmainak @rythorpe , I did cherry picking and was able to get the commit. Only some typo errors came up in the function.
|
Hey @jasmainak @rythorpe , I added some code to test custom delete drives The driver names were correctly passed but self.connectivity shows a weird behavior. This time it became 0 after deleting all drives. Here are the print results Please check this out |
You might want to read this: https://jonescompneurolab.github.io/hnn-under_the_hood/04_evoked-rhythmic-inputs/04_evoked-rhythmic-inputs
sure why not. But don't hard code the number of connections ... they should be computed somehow and intuitive to someone reading the code.
Did you look what Also, please don't share screenshots of code. You can share code in markdown with proper formatting. |
I will look into net.connectivity. |
the tests should check all the possible scenarios and edge cases ... it doesn't matter how many you add |
Fairly self-explanatory: it's currently not shown in our documentation how users can delete drives.
The text was updated successfully, but these errors were encountered: