forked from meiirbek-islamov/defects
-
Notifications
You must be signed in to change notification settings - Fork 0
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
Cherry pick #6
Open
meiirbek-islamov
wants to merge
13
commits into
pitt-software-practices:master
Choose a base branch
from
meiirbek-islamov:cherry-pick
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Cherry pick #6
Changes from all commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
62b4a33
add HKUST-1_3x3x3.cif file to provide a cif input file
meiirbek-islamov 61ed94f
PEP8 changes: change variable names with caps to non cap names
meiirbek-islamov bbc483f
change HKUST-1_3x3x3.txt to HKUST-1_3x3x3.cif
meiirbek-islamov 7e03951
Python2 to Python3: make the code work with Python3
meiirbek-islamov 8a746bd
Combine Introduce_Defects.py and Renumbering.py into one python file,…
meiirbek-islamov 51af462
create a function in remove_linkers.py that can be called in CLI
meiirbek-islamov 17f4997
change the output file name from missing_linkers_renumbered.cif to HK…
meiirbek-islamov ec1e1a0
fix setup.py
meiirbek-islamov 0dc1ca1
add console_scripts
meiirbek-islamov 4ca5af9
fix typo in remove_linkers.py and comment out N
meiirbek-islamov 83f6bd0
add click command line interface
meiirbek-islamov 6b56724
update README.md to explain what the code does
meiirbek-islamov ebd4f0c
add a docstring for the function in remove_linkers.py
meiirbek-islamov 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
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,24 @@ | ||
# defects | ||
# Defects | ||
Python package for introducing missing-linker defects in Metal-organic framework, namely HKUST-1 (3x3x3 supercell). | ||
|
||
## Installation | ||
------------ | ||
First, clone and install the defects repository: | ||
|
||
```bash | ||
git clone https://github.com/meiirbek-islamov/defects.git | ||
cd defects | ||
pip install -e ./ | ||
``` | ||
|
||
## Usage | ||
------------ | ||
A defective HKUST-1 (3x3x3 supercell) can be generated for a cif file HKUST-1_3x3x3.cif with the | ||
`remove-linkers` CLI as follows: | ||
``` | ||
remove-linkers N | ||
``` | ||
Here, `N` is the number of organic linkers you want to remove. Total number of linkers in the system is `432`. Thus, if you want to delete 50% of the linkers, then, `N` will be equal to `216`. | ||
This will generate a defected HKUST-1 named `HKUST-1_3x3x3_defected.cif`. | ||
======= | ||
Python package for introducing missing-defects in Metal-organic framework, namely HKUST-1 (3x3x3 supercell). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import click | ||
from defects.remove_linkers import introduce_defects | ||
|
||
@click.command() | ||
@click.argument('num', type=int) | ||
def introduce_defects_cli(num): | ||
return introduce_defects(num) |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm thinking line 249 should be indented less to distinguish from the hanging-indented lines below it
https://www.python.org/dev/peps/pep-0008/#indentation
Otherwise, looks good!