Skip to content
This repository has been archived by the owner on Nov 14, 2022. It is now read-only.

Add __repr__ or __str__ to ReductionScript for easier reading #1489

Open
Pasarus opened this issue Aug 18, 2022 · 0 comments · May be fixed by #1434
Open

Add __repr__ or __str__ to ReductionScript for easier reading #1489

Pasarus opened this issue Aug 18, 2022 · 0 comments · May be fixed by #1434
Assignees

Comments

@Pasarus
Copy link
Member

Pasarus commented Aug 18, 2022

Currently the representation of the object is:

In [1]: from autoreduce_qp.queue_processor.reduction.service import ReductionScript
In [2]: rs = ReductionScript("INTER")
In [3]: rs
Out[3]: <autoreduce_qp.queue_processor.reduction.service.ReductionScript at 0x7faa68cd5a90>
In [4]: rs.script_path
Out[4]: PosixPath('/isis/NDXINTER/user/scripts/autoreduction/reduce.py')

It would be nicer if just doing rs prints out the script_path

@Pasarus Pasarus transferred this issue from autoreduction/frontend Aug 18, 2022
@Pasarus Pasarus linked a pull request Aug 18, 2022 that will close this issue
@Pasarus Pasarus linked a pull request Aug 18, 2022 that will close this issue
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants