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

Add __repr__ or __str__ to ReductionScript for easier reading #1489

Description

@Pasarus

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions