Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Tsjerk/Insane
/ functions
Functions
125 in github.com/Tsjerk/Insane
⨍
Functions
125
◇
Types & classes
10
↓ 4 callers
Method
fun
(self, fn)
insane/structure.py:198
↓ 3 callers
Function
_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 callers
Function
_split_case
Get the arguments and the input directory from a test case.
tests/test_regression.py:147
↓ 3 callers
Function
angle
(a, b)
insane/structure.py:31
↓ 3 callers
Function
compare
Assert that two files are identical.
tests/test_regression.py:212
↓ 3 callers
Function
occupancy
Return a vector with the occupancy of each grid point for given array of points
insane/structure.py:8
↓ 2 callers
Function
_reference_path
Get the path to the reference files for the simple test cases.
tests/test_regression.py:166
↓ 2 callers
Method
areaxy
(self, lowerbound=-np.inf, upperbound=np.inf, spacing=0.1)
insane/structure.py:175
↓ 2 callers
Function
determine_molecule_numbers
Determine molecule numbers for given total, absolute and relative numbers
insane/core.py:67
↓ 2 callers
Method
diam
(self)
insane/structure.py:165
↓ 2 callers
Function
is_exe
Returns True is the path points to an executable file.
tests/utils.py:135
↓ 2 callers
Method
parse
Parse lipid definition from string: alhead=C P, allink=A A, altail=TCC CCCC, alname=DPSM, charge=0.0
insane/lipids.py:76
↓ 2 callers
Function
pdbBoxRead
(a)
insane/converters.py:31
↓ 2 callers
Function
pointsOnSphere
(n)
insane/core.py:63
↓ 2 callers
Function
read_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 callers
Function
read_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 callers
Function
run_insane
Run insane with the given arguments Insane is run in a copy of `input_directory`.
tests/test_regression.py:191
↓ 2 callers
Method
topology_line
Return this ``Molecule``'s topology line with optional note.
insane/core.py:803
↓ 1 callers
Function
_point
(y, phi)
insane/core.py:58
↓ 1 callers
Method
add_from_def
(self, usrnames, usrheads, usrlinks, usrtails, usrcharges)
insane/lipids.py:220
↓ 1 callers
Method
add_from_file
(self, path)
insane/lipids.py:212
↓ 1 callers
Method
add_from_files
(self, multi_path)
insane/lipids.py:216
↓ 1 callers
Method
add_from_stream
(self, stream)
insane/lipids.py:200
↓ 1 callers
Method
build
Build/return a list of [(bead, x, y, z), ...]
insane/lipids.py:101
↓ 1 callers
Function
color_arguments
Color insane arguments in regression tests
tests/easy_copy.py:37
↓ 1 callers
Function
compare_directories
(directory, ref_directory, ignore=())
tests/test_regression.py:228
↓ 1 callers
Function
compare_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 callers
Function
format_gro_diff
Format differences between GRO files in a human readable way.
tests/utils.py:300
↓ 1 callers
Function
groAtom
(a)
insane/structure.py:55
↓ 1 callers
Function
groBoxRead
(a)
insane/structure.py:62
↓ 1 callers
Function
in_directory
(dirpath)
tests/utils.py:82
↓ 1 callers
Function
isPDBAtom
(l)
insane/structure.py:16
↓ 1 callers
Function
main
(argv)
insane/cli.py:26
↓ 1 callers
Function
main
Command line entry point.
tests/test_regression.py:497
↓ 1 callers
Method
orient
(self, d, pw)
insane/structure.py:201
↓ 1 callers
Function
pdbAtom
(a)
insane/structure.py:19
↓ 1 callers
Function
pdbBoxString
(box)
insane/structure.py:37
↓ 1 callers
Function
realpath
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 callers
Function
replace_function
Rewrites insane regression test description for easy copy-paste
tests/easy_copy.py:57
↓ 1 callers
Function
resize_pbc_for_lipids
Adapt the size of the box to accomodate the lipids. The PBC is changed **in place**.
insane/core.py:85
↓ 1 callers
Method
rotate
(self, what)
insane/structure.py:267
↓ 1 callers
Method
rotate_degrees
(self, angle)
insane/structure.py:287
↓ 1 callers
Method
rotate_princ
(self)
insane/structure.py:277
↓ 1 callers
Method
rotate_random
(self)
insane/structure.py:282
↓ 1 callers
Method
setup
(self, **kwargs)
insane/structure.py:292
↓ 1 callers
Function
setup_membrane
(pbc, protein, lipid, options)
insane/core.py:295
↓ 1 callers
Function
setup_solvent
(pbc, protein, membrane, options)
insane/core.py:145
↓ 1 callers
Method
topology_note
Return an optional note to be appended to the ``Molecule``'s topology line.
insane/core.py:795
↓ 1 callers
Function
write_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 callers
Function
write_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
Method
add
(self, name=None, string=None)
insane/lipids.py:195
Function
add_lipids
Add lipids defined in the file at ``path`` to the given :class:`~Lipid_List` and return the updated list.
insane/lipids.py:294
Function
assert_gro_equal
Raise an AssertionError if two GRO files are not semantically identical.
tests/utils.py:340
Function
box3d
(a)
insane/converters.py:41
Method
c
(self, charge)
insane/lipids.py:167
Method
center
(self)
insane/structure.py:155
Method
charge
(self)
insane/structure.py:145
Function
clean_simple_case_references
Delete reference files for the simple tests if they are not in use anymore.
tests/test_regression.py:484
Function
cli
()
insane/cli.py:83
Method
configure
Configure plugin. Plugin is enabled by default.
tests/easy_copy.py:121
Method
coord
(self)
insane/structure.py:135
Method
describeTest
Nose hook that rewrites test descriptions.
tests/easy_copy.py:134
Method
diamxy
(self)
insane/structure.py:170
Function
generate_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
Function
get_lipids
Return the built‑in lipids defined in ``lipids.dat``.
insane/lipids.py:287
Method
h
(self, head)
insane/lipids.py:158
Function
insane
(**options)
insane/core.py:884
Function
iter_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
Method
l
(self, link)
insane/lipids.py:161
Function
molspec
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
Function
old_main
(**options)
insane/core.py:645
Method
options
Registers the commandline option, defaulting to enabled.
tests/easy_copy.py:99
Method
report
Nose hook that prints at the end of the tests.
tests/easy_copy.py:146
Function
run_and_compare
Run insane and compare its output against a reference
tests/test_regression.py:255
Method
rx
(self)
insane/pbc.py:165
Method
ry
(self)
insane/pbc.py:169
Method
rz
(self)
insane/pbc.py:173
Function
system_title
(membrane, protein, lipids)
insane/core.py:871
Method
t
(self, tail)
insane/lipids.py:164
next →
1–100 of 125, ranked by callers