MCPcopy Create free account

hub / github.com/Tsjerk/Insane / functions

Functions125 in github.com/Tsjerk/Insane

↓ 4 callersMethodfun
(self, fn)
insane/structure.py:198
↓ 3 callersFunction_arguments_as_list
Return the arguments as a list as expected by subprocess.Popen. The arguments can be provided as a string that will be spitted to a list.
tests/test_regression.py:132
↓ 3 callersFunction_split_case
Get the arguments and the input directory from a test case.
tests/test_regression.py:147
↓ 3 callersFunctionangle
(a, b)
insane/structure.py:31
↓ 3 callersFunctioncompare
Assert that two files are identical.
tests/test_regression.py:212
↓ 3 callersFunctionoccupancy
Return a vector with the occupancy of each grid point for given array of points
insane/structure.py:8
↓ 2 callersFunction_reference_path
Get the path to the reference files for the simple test cases.
tests/test_regression.py:166
↓ 2 callersMethodareaxy
(self, lowerbound=-np.inf, upperbound=np.inf, spacing=0.1)
insane/structure.py:175
↓ 2 callersFunctiondetermine_molecule_numbers
Determine molecule numbers for given total, absolute and relative numbers
insane/core.py:67
↓ 2 callersMethoddiam
(self)
insane/structure.py:165
↓ 2 callersFunctionis_exe
Returns True is the path points to an executable file.
tests/utils.py:135
↓ 2 callersMethodparse
Parse lipid definition from string: alhead=C P, allink=A A, altail=TCC CCCC, alname=DPSM, charge=0.0
insane/lipids.py:76
↓ 2 callersFunctionpdbBoxRead
(a)
insane/converters.py:31
↓ 2 callersFunctionpointsOnSphere
(n)
insane/core.py:63
↓ 2 callersFunctionread_gro
Parse a gro file Read an iterable over the lines of a GRO file. Returns the title, the atoms, and the box. The atoms are returned as a l
tests/utils.py:154
↓ 2 callersFunctionread_lipids
Return a :class:`~Lipid_List` of lipid definitions read from a ``lipids.dat``‑style file. Parameters ---------- lipfile An i
insane/lipids.py:236
↓ 2 callersFunctionrun_insane
Run insane with the given arguments Insane is run in a copy of `input_directory`.
tests/test_regression.py:191
↓ 2 callersMethodtopology_line
Return this ``Molecule``'s topology line with optional note.
insane/core.py:803
↓ 1 callersFunction_point
(y, phi)
insane/core.py:58
↓ 1 callersMethodadd_from_def
(self, usrnames, usrheads, usrlinks, usrtails, usrcharges)
insane/lipids.py:220
↓ 1 callersMethodadd_from_file
(self, path)
insane/lipids.py:212
↓ 1 callersMethodadd_from_files
(self, multi_path)
insane/lipids.py:216
↓ 1 callersMethodadd_from_stream
(self, stream)
insane/lipids.py:200
↓ 1 callersMethodbuild
Build/return a list of [(bead, x, y, z), ...]
insane/lipids.py:101
↓ 1 callersFunctioncolor_arguments
Color insane arguments in regression tests
tests/easy_copy.py:37
↓ 1 callersFunctioncompare_directories
(directory, ref_directory, ignore=())
tests/test_regression.py:228
↓ 1 callersFunctioncompare_gro
Compare two gro files with a tolerance on the coordinates The `stream` and `ref_stream` arguments are iterable over the lines of two GRO
tests/utils.py:206
↓ 1 callersFunctionformat_gro_diff
Format differences between GRO files in a human readable way.
tests/utils.py:300
↓ 1 callersFunctiongroAtom
(a)
insane/structure.py:55
↓ 1 callersFunctiongroBoxRead
(a)
insane/structure.py:62
↓ 1 callersFunctionin_directory
(dirpath)
tests/utils.py:82
↓ 1 callersFunctionisPDBAtom
(l)
insane/structure.py:16
↓ 1 callersFunctionmain
(argv)
insane/cli.py:26
↓ 1 callersFunctionmain
Command line entry point.
tests/test_regression.py:497
↓ 1 callersMethodorient
(self, d, pw)
insane/structure.py:201
↓ 1 callersFunctionpdbAtom
(a)
insane/structure.py:19
↓ 1 callersFunctionpdbBoxString
(box)
insane/structure.py:37
↓ 1 callersFunctionrealpath
Join all args and return the real path, rooted at /. Expands '~', '~user', and environment variables such as :envvar`$HOME`. Returns ``None``
tests/utils.py:117
↓ 1 callersFunctionreplace_function
Rewrites insane regression test description for easy copy-paste
tests/easy_copy.py:57
↓ 1 callersFunctionresize_pbc_for_lipids
Adapt the size of the box to accomodate the lipids. The PBC is changed **in place**.
insane/core.py:85
↓ 1 callersMethodrotate
(self, what)
insane/structure.py:267
↓ 1 callersMethodrotate_degrees
(self, angle)
insane/structure.py:287
↓ 1 callersMethodrotate_princ
(self)
insane/structure.py:277
↓ 1 callersMethodrotate_random
(self)
insane/structure.py:282
↓ 1 callersMethodsetup
(self, **kwargs)
insane/structure.py:292
↓ 1 callersFunctionsetup_membrane
(pbc, protein, lipid, options)
insane/core.py:295
↓ 1 callersFunctionsetup_solvent
(pbc, protein, membrane, options)
insane/core.py:145
↓ 1 callersMethodtopology_note
Return an optional note to be appended to the ``Molecule``'s topology line.
insane/core.py:795
↓ 1 callersFunctionwrite_gro
Write a GRO file. Parameters ---------- outfile The stream to write in. title The title of the GRO file. Must be
insane/structure.py:331
↓ 1 callersFunctionwrite_pdb
Write a PDB file. Parameters ---------- outfile The stream to write in. title The title of the GRO file. Must be
insane/structure.py:368
Method__add__
(self, other)
insane/structure.py:113
Method__delitem__
(self, key)
insane/lipids.py:186
Method__enter__
Does nothing when entering a 'with' statement.
tests/utils.py:68
Method__exit__
Does nothing when exiting a 'with' statement.
tests/utils.py:74
Method__getitem__
(self, key)
insane/lipids.py:178
Method__iadd__
(self, s)
insane/structure.py:108
Method__init__
(self, **kwargs)
insane/lipids.py:54
Method__init__
(self)
insane/lipids.py:174
Method__init__
(self, name: str, count: int, source: str | None | bool = False)
insane/core.py:790
Method__init__
(self, filename=None, options=None)
insane/structure.py:68
Method__init__
(self, shape=None, box=None, xyz=None, distance=None, membrane=None, protein=None, disc=None, hole=None)
insane/pbc.py:12
Method__init__
(self, *args, **kwargs)
tests/easy_copy.py:93
Method__iter__
(self)
insane/lipids.py:189
Method__iter__
(self)
insane/structure.py:125
Method__len__
(self)
insane/lipids.py:192
Method__len__
(self)
insane/structure.py:105
Method__nonzero__
(self)
insane/structure.py:102
Method__setitem__
(self, key, value)
insane/lipids.py:183
Function_open_if_needed
Return handle if it is a ContextStringIO instance else try to open it.
tests/utils.py:350
Function_redirect_out_and_err
(stdout, stderr)
tests/utils.py:360
Function_run_internal
(arguments)
tests/test_regression.py:177
Methodadd
(self, name=None, string=None)
insane/lipids.py:195
Functionadd_lipids
Add lipids defined in the file at ``path`` to the given :class:`~Lipid_List` and return the updated list.
insane/lipids.py:294
Functionassert_gro_equal
Raise an AssertionError if two GRO files are not semantically identical.
tests/utils.py:340
Functionbox3d
(a)
insane/converters.py:41
Methodc
(self, charge)
insane/lipids.py:167
Methodcenter
(self)
insane/structure.py:155
Methodcharge
(self)
insane/structure.py:145
Functionclean_simple_case_references
Delete reference files for the simple tests if they are not in use anymore.
tests/test_regression.py:484
Functioncli
()
insane/cli.py:83
Methodconfigure
Configure plugin. Plugin is enabled by default.
tests/easy_copy.py:121
Methodcoord
(self)
insane/structure.py:135
MethoddescribeTest
Nose hook that rewrites test descriptions.
tests/easy_copy.py:134
Methoddiamxy
(self)
insane/structure.py:170
Functiongenerate_simple_case_references
Run insane to generate reference files for the simple regression tests. Run insane with the arguments listed in SIMPLE_TEST_CASES. The outpu
tests/test_regression.py:454
Functionget_lipids
Return the built‑in lipids defined in ``lipids.dat``.
insane/lipids.py:287
Methodh
(self, head)
insane/lipids.py:158
Functioninsane
(**options)
insane/core.py:884
Functioniter_resource
Return a stream for a given resource file in the module. The resource file has to be part of the module and its filenane given relative
insane/utils.py:25
Methodl
(self, link)
insane/lipids.py:161
Functionmolspec
Parse a string for a lipid or a solvent as given on the command line (MOLECULE[=NUMBER|:NUMBER]); where `=NUMBER` sets an absolute number of
insane/converters.py:51
Functionold_main
(**options)
insane/core.py:645
Methodoptions
Registers the commandline option, defaulting to enabled.
tests/easy_copy.py:99
Methodreport
Nose hook that prints at the end of the tests.
tests/easy_copy.py:146
Functionrun_and_compare
Run insane and compare its output against a reference
tests/test_regression.py:255
Methodrx
(self)
insane/pbc.py:165
Methodry
(self)
insane/pbc.py:169
Methodrz
(self)
insane/pbc.py:173
Functionsystem_title
(membrane, protein, lipids)
insane/core.py:871
Methodt
(self, tail)
insane/lipids.py:164
next →1–100 of 125, ranked by callers