-
Notifications
You must be signed in to change notification settings - Fork 176
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
added findfeaturesSegment script #5091
Merged
Merged
Changes from 1 commit
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
d78d6a8
added findfeaturesSegment script
Kelvinrr 44fc0cc
now parrallelized
Kelvinrr b099e00
updated logging code
Kelvinrr f6d7559
added help string
Kelvinrr 200a70e
added help string
Kelvinrr 15dad84
added envs and fixed progress bar output
Kelvinrr 8f6b0c7
staging things
Kelvinrr 5ea43df
added python stuff, fixed segment issues, addressed coments
Kelvinrr fd280c5
addressing comments
Kelvinrr 6022344
added more doc strings
Kelvinrr ec6d444
made pybindings on by default
Kelvinrr 967e53d
addressing comments
Kelvinrr a0a043c
fixed some things, local testing
Kelvinrr 8d6b379
merge conflict
Kelvinrr c0e7046
updated install steps
Kelvinrr f3d9b9b
added basic tests
Kelvinrr 64d1407
reverting ale pin
Kelvinrr 5522fa6
changed license
Kelvinrr 2d70b7c
turn on pybindings in jenkins
Kelvinrr 1424dad
renamed script
Kelvinrr c87ea4a
shadow rename?
Kelvinrr 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
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
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 @@ | ||
from . import findFeaturesSegment |
Empty file.
Binary file added
BIN
+2.72 KB
isis/python_bindings/tests/__pycache__/test_install.cpython-39-pytest-7.4.0.pyc
Binary file not shown.
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,38 @@ | ||
import importlib.util | ||
import sys | ||
import subprocess | ||
|
||
|
||
def test_module_import(): | ||
name = 'astroset' | ||
if name in sys.modules: | ||
print(f"{name!r} already in sys.modules") | ||
assert (spec := importlib.util.find_spec(name)) is not None | ||
|
||
def test_check_pip_install(): | ||
package_name = "astroset" | ||
try: | ||
# Check if the package is installed by running the "pip show" command | ||
result = subprocess.check_output(['pip', 'show', package_name]) | ||
package_info = result.decode('utf-8') | ||
|
||
# Parse the package information to check if it contains the package name | ||
assert(package_name.lower() in package_info.lower()) | ||
|
||
except subprocess.CalledProcessError: | ||
assert False | ||
|
||
def test_app_install(): | ||
app_name = 'findFeaturesSegment.py' | ||
try: | ||
# Check if the package is installed by running the "pip show" command | ||
result = subprocess.check_output([app_name, '-H']) | ||
help_string = result.decode('utf-8') | ||
|
||
# Parse the package information to check if it contains the package name | ||
assert("from" in help_string.lower()) | ||
assert("fromlist" in help_string.lower()) | ||
|
||
except subprocess.CalledProcessError: | ||
assert False | ||
Comment on lines
+6
to
+37
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. some simple install scripts |
||
|
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.
added the tests to jenkins