Skip to content

Add argcomplete support and present RAM data in GB#10

Merged
peterfpeterson merged 3 commits intomainfrom
small_updates
Jan 26, 2026
Merged

Add argcomplete support and present RAM data in GB#10
peterfpeterson merged 3 commits intomainfrom
small_updates

Conversation

@jmborr
Copy link
Member

@jmborr jmborr commented Jan 23, 2026

Description of Work

This pull request adds argcomplete support for command-line autocompletion and corrects the RAM axis label in plots from GB to MB to match the actual units being used.

Manual test

Run the following script (simple.py):

from mantid.simpleapi import LoadEmptyInstrument
ws = LoadEmptyInstrument(InstrumentName="TOPAZ", MakeEventWorkspace=False)

In an environment supporting Mantid's Framework, which can be passed on to the profiler

(mantid-developer) python simple.py & pixi run --manifest-path /path/to/repository/mantid-profiler/pyproject.toml mantidprofiler $!

Make sure the resulting HTML profile shows RAM data in GB.

jmborr and others added 2 commits January 23, 2026 15:24

This comment was marked as resolved.

@jmborr jmborr requested a review from peterfpeterson January 23, 2026 20:38
@jmborr jmborr changed the title Add argcomplete support and update RAM title in plots Add argcomplete support and present RAM data in GB Jan 23, 2026
…mentation

Signed-off-by: Jose Borreguero <borreguero@gmail.com>
Copy link
Member

@peterfpeterson peterfpeterson left a comment

Choose a reason for hiding this comment

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

I tested this by running

python -c "from time import sleep;sleep(1)" & mantidprofiler $!

and the plot has a much more sensible vertical axis.

@peterfpeterson peterfpeterson merged commit e277981 into main Jan 26, 2026
3 checks passed
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

Comments