Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #68625
| Path | csiph.com!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!nntp.club.cc.cmu.edu!micro-heart-of-gold.mit.edu!bloom-beacon.mit.edu!bloom-beacon.mit.edu!panix!gordon |
|---|---|
| From | John Gordon <gordon@panix.com> |
| Newsgroups | comp.lang.python |
| Subject | Re: File Path/Global name issue |
| Date | Thu, 20 Mar 2014 21:31:15 +0000 (UTC) |
| Organization | PANIX Public Access Internet and UNIX, NYC |
| Lines | 43 |
| Message-ID | <lgfmn3$rua$1@reader1.panix.com> (permalink) |
| References | <2089d20b-aa60-462f-aad0-51109849cf36@googlegroups.com> |
| NNTP-Posting-Host | panix2.panix.com |
| X-Trace | reader1.panix.com 1395351075 28618 166.84.1.2 (20 Mar 2014 21:31:15 GMT) |
| X-Complaints-To | abuse@panix.com |
| NNTP-Posting-Date | Thu, 20 Mar 2014 21:31:15 +0000 (UTC) |
| User-Agent | nn/6.7.3 |
| Xref | csiph.com comp.lang.python:68625 |
Show key headers only | View raw
In <2089d20b-aa60-462f-aad0-51109849cf36@googlegroups.com> roy.snuffles@gmail.com writes:
> I am currently running code for a program called HotNet (https://github.com/raphael-group/hotnet)
> In its simpleRun.py file, there is a place to insert a file path to be run.
> parser.add_argument('-mf', '--infmat_file', required=True,
> help='Path to .mat file containing influence matrix')
> My path file is /home/lai/Downloads/influence_matrix_files/hprd_inf_.mat
You're completely misunderstanding the purpose of this line of code. Its
intent is to allow you to pass the matrix file location to the script by
using the '-mf' or '--infmat_file' arguments, thus not requiring you to
edit the script at all.
The 'help' parameter provides a message explaining the usage of that
particular argument if the simpleRun.py script is executed with the '-help'
option.
For example, if you were unsure how to use the simpleRun.py script, you
might run this command:
simpleRun.py -help
And you might see output that looks like this:
Usage: simpleRun.py [options]
Options:
-h, --help show this help message and exit
-mf, --infmat_file Path to .mat file containing influence matrix
-d, --dance do a little dance
-l, --love make a little love
The help message thus informs you that you can provide the location to an
influence matrix file by using the '-mf' or '--infmat_file' arguments.
There are also -d and -l options that do ... something.
--
John Gordon Imagine what it must be like for a real medical doctor to
gordon@panix.com watch 'House', or a real serial killer to watch 'Dexter'.
Back to comp.lang.python | Previous | Next — Previous in thread | Find similar | Unroll thread
File Path/Global name issue roy.snuffles@gmail.com - 2014-03-20 12:55 -0700
Re: File Path/Global name issue Skip Montanaro <skip@pobox.com> - 2014-03-20 15:05 -0500
Re: File Path/Global name issue roy.snuffles@gmail.com - 2014-03-20 13:08 -0700
Re: File Path/Global name issue Skip Montanaro <skip@pobox.com> - 2014-03-20 15:15 -0500
Re: File Path/Global name issue Peter Otten <__peter__@web.de> - 2014-03-20 21:26 +0100
Re: File Path/Global name issue John Gordon <gordon@panix.com> - 2014-03-20 21:31 +0000
csiph-web