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

Reading and Writing Networks #4

Open
vishal-chandra opened this issue Jun 14, 2019 · 4 comments
Open

Reading and Writing Networks #4

vishal-chandra opened this issue Jun 14, 2019 · 4 comments

Comments

@vishal-chandra
Copy link

Hi! Great Library! I'm using it in this project and it's working great. However, the issue I'm having arises when saving a network.
The file nn_data.json is being written to my root directory instead of the project folder.
Support for custom file names would also be nice.
Thanks.

@kim-marcel
Copy link
Owner

Hi, I'm very happy that you like this library and use it in your project! If you want you can add it as an example-project in the README. Just send me a pull request.

What do you mean with root directory? If it's being saved to the root of your project this is actually intended behavior.

I just added support for custom file names with v0.5. I hope you like it.

@vishal-chandra
Copy link
Author

Thanks for the offer! I'll definitely link my project and send you a pull request soon.

By root directory I meant my user root directory rather than the project root. In my case (on Mac), it's being saved to /Users/vishalchandra. However, I've looked into the FileReaderAndWriter.writeToFile() method and haven't found anything that would lead to this behavior.

I'll try integrating v0.5 with my project and seeing if that fixes it. Thanks for your work on this!

@kim-marcel
Copy link
Owner

I just tried to recreate this issue and I get the same behavior.

However, this only seems to be a problem with Processing, a plain Java project works just fine.

I'll have a closer look soon.

@vishal-chandra
Copy link
Author

Oh, that's interesting. Might be an issue with FileWriter itself and processing. I'll look into that as well.

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

No branches or pull requests

2 participants