Skip to content

Commit

Permalink
Merge pull request #207 from khanlab/maint/bidsdump
Browse files Browse the repository at this point in the history
Add message to authorize bidsdump user
  • Loading branch information
kaitj authored Dec 15, 2023
2 parents 89cdbf6 + 6505647 commit 6272f24
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 6 deletions.
8 changes: 6 additions & 2 deletions autobidsportal/routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,11 @@ def new_study() -> str | Response:
db.session.add(study) # pyright: ignore
db.session.commit() # pyright: ignore

flash("Thanks, the survey has been submitted!")
flash(
"Thanks, the survey has been submitted!<br/>"
"If you haven't already, please add 'bidsdump' as an authorized user to "
"your study on the CFMM DICOM server.",
)
send_email(
"New study request",
(
Expand Down Expand Up @@ -1268,7 +1272,7 @@ def dicom_verify(study_id: int, method: str):
err_cause = (
err.__cause__.stderr # pyright: ignore
if err.__cause__ is not None
else ""
else "" # pyright: ignore
)
current_app.logger.warning(
"Failed to get DICOM info for study %i: %s",
Expand Down
24 changes: 20 additions & 4 deletions autobidsportal/templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,26 @@ <h1 class="card-title">Welcome to Autobids!</h1>
format.
</p>
<p>
Request a new study from the
<a href="{{ url_for("portal_blueprint.new_study") }}">"New Study"</a>
tab. To interact with your study, you'll need to create an account
and log in. An admin will review the new study, enable it, and grant
To create request CFMM autobids conversion:
<ol type="1">
<li>
Request a new study from the
<a href="{{ url_for("portal_blueprint.new_study") }}">"New Study"</a>
tab. To interact with your study, you'll need to create an account
and log in.
</li>
<li>
Have the PI (or study manager) add "bidsdump" as an authorized user
for the study on the CFMM DICOM study. A step-by-step guide can be found
<a href="https://github.com/khanlab/autobids/wiki/Granting-access-to-bidsdump"
target="_blank">here</a>.
</li>
<li>
Sign up for a <a href="https://app.globus.org/" target="_blank">Globus</a> account and download
<a href="https://www.globus.org/globus-connect-personal" target="_blank">Globus Connect Personal</a>.
</li>
</ol>
An admin will review the new study, enable it, and grant
you access if there are no issues.
</p>
</div>
Expand Down

0 comments on commit 6272f24

Please sign in to comment.