Skip to content

Commit

Permalink
Refactor (#17)
Browse files Browse the repository at this point in the history
* fix : opr_error.py --> errors.py

* fix : opr_param.py --> params.py

* fix : opr_obj.py --> primer.py

* doc : RELEASE.md updated
  • Loading branch information
sepandhaghighi authored Sep 20, 2024
1 parent c16f679 commit 33432c2
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 13 deletions.
5 changes: 3 additions & 2 deletions opr/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# -*- coding: utf-8 -*-
"""OPR modules."""
from .opr_param import OPR_VERSION
from .opr_obj import Primer
from .params import OPR_VERSION
from .primer import Primer
from .errors import OPRBaseError

__version__ = OPR_VERSION
File renamed without changes.
File renamed without changes.
16 changes: 8 additions & 8 deletions opr/opr_obj.py → opr/primer.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
# -*- coding: utf-8 -*-
"""OPR modules."""
"""OPR primer."""
from warnings import warn
from .opr_error import OPRBaseError
from .opr_param import VALID_BASES
from .opr_param import PRIMER_SEQUENCE_TYPE_ERROR, PRIMER_SEQUENCE_LENGTH_WARNING, PRIMER_SEQUENCE_VALID_BASES_ERROR, PRIMER_SEQUENCE_VALID_GC_CONTENT_RANGE_WARNING
from .opr_param import PRIMER_LOWER_LENGTH, PRIMER_HIGHEST_LENGTH, PRIMER_LOWEST_GC_RANGE, PRIMER_HIGHEST_GC_RANGE
from .opr_param import PRIMER_READ_ONLY_ATTRIBUTE_ERROR, PRIMER_NOT_REMOVABLE_ATTRIBUTE_ERROR
from .opr_param import A_WEIGHT, T_WEIGHT, C_WEIGHT, G_WEIGHT, ANHYDROUS_MOLECULAR_WEIGHT_CONSTANT
from .opr_param import DNA_COMPLEMENT_MAP
from .errors import OPRBaseError
from .params import VALID_BASES
from .params import PRIMER_SEQUENCE_TYPE_ERROR, PRIMER_SEQUENCE_LENGTH_WARNING, PRIMER_SEQUENCE_VALID_BASES_ERROR, PRIMER_SEQUENCE_VALID_GC_CONTENT_RANGE_WARNING
from .params import PRIMER_LOWER_LENGTH, PRIMER_HIGHEST_LENGTH, PRIMER_LOWEST_GC_RANGE, PRIMER_HIGHEST_GC_RANGE
from .params import PRIMER_READ_ONLY_ATTRIBUTE_ERROR, PRIMER_NOT_REMOVABLE_ATTRIBUTE_ERROR
from .params import A_WEIGHT, T_WEIGHT, C_WEIGHT, G_WEIGHT, ANHYDROUS_MOLECULAR_WEIGHT_CONSTANT
from .params import DNA_COMPLEMENT_MAP


class Primer:
Expand Down
4 changes: 2 additions & 2 deletions otherfiles/RELEASE.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
# OPR Release Instructions

#### Last Update: 2023-12-20
**Last Update: 2024-09-17**

1. Create the `release` branch under `dev`
2. Update all version tags
1. `setup.py`
2. `README.md`
3. `otherfiles/version_check.py`
4. `otherfiles/meta.yaml`
5. `opr/opr_param.py`
5. `opr/params.py`
3. Update `CHANGELOG.md`
1. Add a new header under `Unreleased` section (Example: `## [0.1] - 2022-08-17`)
2. Add a new compare link to the end of the file (Example: `[0.2]: https://github.com/openscilab/opr/compare/v0.1...v0.2`)
Expand Down
2 changes: 1 addition & 1 deletion otherfiles/version_check.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"README.md": README_ITEMS,
"CHANGELOG.md": CHANGELOG_ITEMS,
"SECURITY.md": SECURITY_ITEMS,
os.path.join("opr", "opr_param.py"): PARAMS_ITEMS,
os.path.join("opr", "params.py"): PARAMS_ITEMS,
}

TEST_NUMBER = len(FILES)
Expand Down

0 comments on commit 33432c2

Please sign in to comment.