Conversation
- --input (-i) and --output (-o) can also be used. - functions have been created to extract directory and filename from path files. - will require additional unit testing of code.
|
Thanks for re-staging the PR @greebie. Looking good! Two quick queries. First – just tested on an Ubuntu machine with syntax like: Seems to be working but this popped up as an error before SUCCESS: Is this expected behaviour? Second, if I don't provide a relative path but just the filename, i.e. I get Is this expected behaviour? |
|
Also, circling back to the outstanding comments on #62. @ruebot noted:
and
Is it possible to move forward on making this straightforward stdin stdout syntax? Thanks @greebie! |
This is the same as the previous behavior, but I would like to change it.
This is not the expected behavior. I will fix. |
I think I have this resolved in the current push. However, in doing so I broke a test (as per Travis fail). I would also like to create some tests (tomorrow) before this merges. |
|
OK, can you ping me @greebie when you want me to test this. I'm out of office tomorrow afternoon and Thursday morning so might be a delay. |
- get_directory - get_file - strip_ext - load_graph - write_graph
…f exit(1). - Exit should be handled in main().
|
Assuming the latest build passes Travis, it should complete all the outstanding issues mentioned.
|
ruebot
left a comment
There was a problem hiding this comment.
First pass review. There will be more to come.
First, please use stderr instead of manually creating errors.
| @@ -48,7 +80,7 @@ extern int load_graph (char* filename) { | |||
| fp = fopen(filename, "r"); | |||
| if (fp == 0) { | |||
| printf(">>> FAILURE - Could not find graphML file at filepath location.\n"); | |||
| if (stat(ug_OUTPUT, &st) == -1) { | ||
| mkdir(ug_OUTPUT, 0700); | ||
| if (stat(ug_OUTPATH, &st) == -1) { | ||
| printf(">>> FAILURE - Could not create file at selected output location.\n"); |
| } | ||
| } else { | ||
| igraph_write_graph_graphml(graph, fp, 1); | ||
| printf ("\n ERROR: Output path %s could not be accessed. Graphpass", ug_OUTPATH); |
- change printf("..") to fprintf(stderr, "..")
- change stderror_vector to std_error_vector. This is not stderr but a calculation of standard error for a t-test.
|
@greebie since you pinged me to say you weren't able to reproduce the overwriting files. On rho if I run: It overwrites the existing file. |
|
Hi Ian - when you say it overwrites the existing file, do you mean I can add an over-write flag and make it so that |
That sounds good to me. What do you think @ruebot ? |
|
Okay - is it okay if we put that in another issue? It's possible that I can break things while building this functionality, so I'd like to be able to track it. |
|
@greebie I'm noticing You'll also need to update |
|
@ruebot That is the expected behavior because I created tests that check that graphpass fails when it is supposed to, but I do not think this is desired behavior. Let me see if I can test those features more gracefully. |
|
@ianmilligan1 with the overwrite. Can you add the steps you took? If the |
|
I'm happy with the overwriting if you are, @ruebot, as I was just noting as you said above "If the gexf file already exists and the output location, it is going get clobbered." If we're cool with that happy to move forward. |
|
Ah, yeah. I see what you mean. I was talking about the |
|
Okay great. The current issues I will address are:
|
Do not print error messages on tests. Add ana, io, & qp to .gitignore
ruebot
left a comment
There was a problem hiding this comment.
Functionality appears to be good to go. Lots of cleanup here, and after that I believe we should be good to go.
Add some comments to help demystify PATH management process. (This may need re-factoring at a later time.)
ruebot
left a comment
There was a problem hiding this comment.
Couple tiny things, then I think we're good to go.

GitHub issue(s):
#47
What does this Pull Request do?
./graphpass {input path} {output path} -flags --optionA {data}How should this be tested?
./graphpass {/path/to/file.graphml} {/path/to/output} -qshould do a quickpass tooutput.graphml../graphpass {/path/to/file.graphml} {/path/to/output/} -qgshould do a quickpass tofile.gexfAdditional Notes:
./graphpass {/path/to/file.graphml} {/path/to/} -qmay replace the input filefile.graphmlin current commits. This will need to be repaired or managed (see comments in #62).Interested parties
@ianmilligan1 @ruebot
Thanks in advance for your help with the Archives Unleashed Project!