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

Release 0.6.0 #85

Merged
merged 40 commits into from
Sep 1, 2020
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
40 commits
Select commit Hold shift + click to select a range
d93e096
rework plotting to allow for plot_axes
sroet Jul 13, 2020
577a12f
implement colorbars after dwhs suggestion
sroet Jul 13, 2020
07b18b1
fix codeclimate issue
sroet Jul 13, 2020
34f2f44
change vendored setup.py
sroet Jul 13, 2020
ec9f5cc
update version to 0.6.0.dev0
sroet Jul 14, 2020
754fdd6
apply dwhswenson suggestion
sroet Jul 14, 2020
0602ea9
fix aspect ratio example plot
sroet Jul 14, 2020
558716b
Add from_contacts builder to ContactObjects
dwhswenson Aug 12, 2020
e4ebff6
Merge pull request #79 from sroet/allow_fig_ax_kw
dwhswenson Aug 12, 2020
fa07049
Bump to 0.6.0.dev0
dwhswenson Aug 12, 2020
5ffa28b
Merge pull request #80 from dwhswenson/bump-0.6.0.dev
dwhswenson Aug 12, 2020
2d9fc25
Tests for from_contacts
dwhswenson Aug 12, 2020
6d12810
most of ContactTrajectory (and related)
dwhswenson Aug 13, 2020
5a11fc2
Merge branch 'master' of github.com:dwhswenson/contact_map into conta…
dwhswenson Aug 13, 2020
d5e5d28
Switch to using coveralls (not python-coveralls)
dwhswenson Aug 13, 2020
9bc0541
First sets of tests for contact trajectories
dwhswenson Aug 13, 2020
d1debcd
progress on MutableContactTraj, traj.contact_freq
dwhswenson Aug 13, 2020
0420730
Switch to using coveralls (not python-coveralls)
dwhswenson Aug 13, 2020
bca93b2
exclude python==2 / pandas<1.1 lines from coverage
dwhswenson Aug 13, 2020
22944a7
exclude another line from coverage
dwhswenson Aug 13, 2020
5f6dd58
Merge pull request #83 from dwhswenson/coveralls
dwhswenson Aug 14, 2020
4dcd878
tests for ContactTraj.contact_freq
dwhswenson Aug 14, 2020
c71947a
Deprecate ContactMap
dwhswenson Aug 14, 2020
67b09c5
Updates after sroet's review
dwhswenson Aug 14, 2020
1fb5d85
Merge pull request #84 from dwhswenson/deprecate_map
dwhswenson Aug 14, 2020
2f03c7a
Merge branch 'master' of github.com:dwhswenson/contact_map into conta…
dwhswenson Aug 17, 2020
5c5c6d6
tests for mutable contact trajectory
dwhswenson Aug 28, 2020
2c29511
add support for atom-slicing trajs
dwhswenson Aug 28, 2020
eabea6f
compatibility check in from_contact_maps
dwhswenson Aug 29, 2020
c64b688
Tests for RollingContactFrequency
dwhswenson Aug 31, 2020
4a3c172
docs and docstrings
dwhswenson Aug 31, 2020
fabbac3
Add example
dwhswenson Aug 31, 2020
fca7d97
Update contact_map/contact_trajectory.py
dwhswenson Aug 31, 2020
b6dcd14
Update contact_map/contact_trajectory.py
dwhswenson Aug 31, 2020
17fe913
Update contact_map/contact_trajectory.py
dwhswenson Aug 31, 2020
91cf05c
Update contact_map/tests/test_contact_trajectory.py
dwhswenson Aug 31, 2020
2961713
Update contact_map/tests/test_contact_trajectory.py
dwhswenson Aug 31, 2020
8677682
Update contact_map/contact_trajectory.py
dwhswenson Aug 31, 2020
6063210
Merge pull request #81 from dwhswenson/contact_trajectory
dwhswenson Sep 1, 2020
dce1ec4
Release 0.6.0
dwhswenson Sep 1, 2020
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Updates after sroet's review
  • Loading branch information
dwhswenson committed Aug 14, 2020
commit 67b09c503c0708f9b8203c52ea1c26c5fa533ab1
4 changes: 2 additions & 2 deletions examples/contact_map.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"metadata": {},
"outputs": [],
"source": [
"from contact_map import ContactMap, ContactFrequency, ContactDifference"
"from contact_map import ContactFrequency, ContactDifference"
]
},
{
Expand Down Expand Up @@ -422,7 +422,7 @@
"\n",
"The `.most_common()` method gives a list of the contact pairs and the frequency, sorted by frequency. See also `collections.Counter.most_common()` in the standard Python `collections` module.\n",
"\n",
"Here we do this with the `ContactDifference` we created, although it works the same for `ContactFrequency` and `ContactMap` (with the single-frame contact map, the ordering is a bit nonsensical, since every entry is either 0 or 1)."
"Here we do this with the `ContactDifference` we created, although it works the same for `ContactFrequency` (with the single-frame contact map, the ordering is a bit nonsensical, since every entry is either 0 or 1)."
]
},
{
Expand Down
78 changes: 58 additions & 20 deletions examples/contact_map_without_atom_slice.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"metadata": {},
"source": [
"## The worst case example\n",
"This is only adding a noticeable overhead for `ContactMap` in this case, but this could be worse for other systems"
"This is only adding a noticeable overhead for a single frame trajectory in this case, but this could be worse for other systems"
]
},
{
Expand Down Expand Up @@ -64,8 +64,27 @@
"name": "stdout",
"output_type": "stream",
"text": [
"CPU times: user 14.7 s, sys: 111 ms, total: 14.8 s\n",
"Wall time: 15.7 s\n"
"CPU times: user 251 ms, sys: 14.7 ms, total: 266 ms\n",
"Wall time: 293 ms\n"
]
}
],
"source": [
"%%time\n",
"frame_contacts = ContactFrequency(traj[0], query=used_atoms, haystack=used_atoms)"
]
},
{
"cell_type": "code",
"execution_count": 5,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"CPU times: user 12.9 s, sys: 76.4 ms, total: 13 s\n",
"Wall time: 13.3 s\n"
]
}
],
Expand All @@ -77,7 +96,7 @@
},
{
"cell_type": "code",
"execution_count": 5,
"execution_count": 6,
"metadata": {},
"outputs": [
{
Expand All @@ -86,7 +105,7 @@
"True"
]
},
"execution_count": 5,
"execution_count": 6,
"metadata": {},
"output_type": "execute_result"
}
Expand All @@ -107,7 +126,7 @@
},
{
"cell_type": "code",
"execution_count": 6,
"execution_count": 7,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -117,15 +136,34 @@
},
{
"cell_type": "code",
"execution_count": 7,
"execution_count": 8,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"CPU times: user 150 ms, sys: 4.99 ms, total: 155 ms\n",
"Wall time: 171 ms\n"
]
}
],
"source": [
"%%time\n",
"frame_contacts = ContactFrequency(traj[0], query=used_atoms, haystack=used_atoms)"
]
},
{
"cell_type": "code",
"execution_count": 9,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"CPU times: user 15.8 s, sys: 88.7 ms, total: 15.9 s\n",
"Wall time: 16.3 s\n"
"CPU times: user 13.2 s, sys: 76 ms, total: 13.3 s\n",
"Wall time: 13.4 s\n"
]
}
],
Expand All @@ -137,7 +175,7 @@
},
{
"cell_type": "code",
"execution_count": 8,
"execution_count": 10,
"metadata": {},
"outputs": [
{
Expand All @@ -146,7 +184,7 @@
"False"
]
},
"execution_count": 8,
"execution_count": 10,
"metadata": {},
"output_type": "execute_result"
}
Expand All @@ -166,7 +204,7 @@
},
{
"cell_type": "code",
"execution_count": 9,
"execution_count": 11,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -176,7 +214,7 @@
},
{
"cell_type": "code",
"execution_count": 10,
"execution_count": 12,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -187,15 +225,15 @@
},
{
"cell_type": "code",
"execution_count": 11,
"execution_count": 13,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"CPU times: user 122 ms, sys: 2.35 ms, total: 124 ms\n",
"Wall time: 132 ms\n"
"CPU times: user 112 ms, sys: 3.98 ms, total: 116 ms\n",
"Wall time: 124 ms\n"
]
}
],
Expand All @@ -206,7 +244,7 @@
},
{
"cell_type": "code",
"execution_count": 12,
"execution_count": 14,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -217,15 +255,15 @@
},
{
"cell_type": "code",
"execution_count": 13,
"execution_count": 15,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"CPU times: user 2.08 s, sys: 10.8 ms, total: 2.09 s\n",
"Wall time: 2.12 s\n"
"CPU times: user 1.89 s, sys: 15.1 ms, total: 1.9 s\n",
"Wall time: 1.93 s\n"
]
}
],
Expand Down