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

Display loaded data, model names #47

Merged
merged 4 commits into from
Sep 9, 2021

Conversation

ashishsingh18
Copy link
Contributor

Fix #25

Copy link
Contributor

@AbdulkadirA AbdulkadirA left a comment

Choose a reason for hiding this comment

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

@ashishsingh18 Thanks. In my setup, this will not display the full path if the relative path is given in the command line, e.g.

python -m iSTAGING.main --data_file istaging.pkl.gz --harmonization_model_file MUSE_harmonization_model.pkl

will display istaging.pkl.gz without the full path. Is that easy to fix?

Edit:

os.path.abspath(filepath_that_is_potentially_relative)

This could be added to main.py as follows:

    data_file = os.path.abspath(args.data_file)
    harmonization_model_file = os.path.abspath(args.harmonization_model_file)

@ashishsingh18
Copy link
Contributor Author

@ashishsingh18 Thanks. In my setup, this will not display the full path if the relative path is given in the command line, e.g.

python -m iSTAGING.main --data_file istaging.pkl.gz --harmonization_model_file MUSE_harmonization_model.pkl

will display istaging.pkl.gz without the full path. Is that easy to fix?

Edit:

os.path.abspath(filepath_that_is_potentially_relative)

This could be added to main.py as follows:

    data_file = os.path.abspath(args.data_file)
    harmonization_model_file = os.path.abspath(args.harmonization_model_file)

Fixed

Copy link
Contributor

@AbdulkadirA AbdulkadirA left a comment

Choose a reason for hiding this comment

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

Works.

@ashishsingh18 ashishsingh18 merged commit 0c9d0d1 into CBICA:main Sep 9, 2021
@ashishsingh18 ashishsingh18 deleted the display_dataInfo branch September 9, 2021 19:22
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.

Display loaded data name on UI
2 participants