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

Python wrapper script #62

Closed
wants to merge 4 commits into from
Closed

Python wrapper script #62

wants to merge 4 commits into from

Conversation

emilmelnikov
Copy link
Member

No description provided.

@m-novikov m-novikov requested review from Tomaz-Vieira and m-novikov and removed request for Tomaz-Vieira April 2, 2020 10:09
Copy link
Contributor

@m-novikov m-novikov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did you test it on HPC?

@@ -24,13 +24,17 @@ def get_queryset(self):
return super().get_queryset().select_related("file")


PROJECT_WORKFLOWS = ("Pixel Classification", "Object Classification")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think here snake_case should be used. While I know that in ilastik workflow name is used in this format and relied upon, I think can be easily misinterpreted as a human-readable string and changed. Related ilastik/ilastik#2219

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See question/discussion in related.

def main():
os.environ["PATH"] = os.pathsep.join(
[
os.path.expanduser("~/miniconda3/envs/ildev/bin"),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this be configured somehow?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was copied verbatim from the existing script, but yes, I also don't like it.

Anyway, it's probably better not to copy scripts with the payload and config every time someone submits a job. We should embed this in a deployed environment somehow (which will probably include the whole Python + deps).

@emilmelnikov
Copy link
Member Author

emilmelnikov commented Apr 20, 2020

Did you test it on HPC?

Yes, it worked at the time I've submitted this PR. However, I think it should be more configurable, and we also need to rebase this on top of #65, so it's probably better to scrap this altogether.

@emilmelnikov
Copy link
Member Author

Closed because this PR contains a lot of auth code, but HBP is migrating to FURMS (Fenix User and Resource Management Service).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants