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

Add speedrate parameter for insert() / eject() functions in wiregrid_actuator #574

Merged
merged 4 commits into from
Nov 27, 2023

Conversation

sadachi5
Copy link
Contributor

Description

Add speedrate argument for insert()/eject() functions in wiregrid_actuator agent and set the limitation of the parameter from 0.0 to 5.0.

Motivation and Context

The default value of speedrate is 1.0 and changing speedrate allows us to do fast inserting or ejecting, which is useful to check the difference between the detector responses with and without the wiregrid. Setting the speedrate to 5.0, the time duration for each inserting or ejecting would be about 30 sec which is three times shorter than that in default setting (speedrate=1.0).

CAUTION!!
speedrate > 1.0 must not be selected if elevation is not 90 deg.

How Has This Been Tested?

It was tested in Kyoto using wiregrid.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

Checklist:

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.

@BrianJKoopman BrianJKoopman self-requested a review November 27, 2023 16:04
Copy link
Member

@BrianJKoopman BrianJKoopman left a comment

Choose a reason for hiding this comment

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

This looks good to me, though I wonder about the restriction on elevation.

docs/agents/wiregrid_actuator.rst Outdated Show resolved Hide resolved
@BrianJKoopman BrianJKoopman self-requested a review November 27, 2023 21:27
Copy link
Member

@BrianJKoopman BrianJKoopman left a comment

Choose a reason for hiding this comment

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

Thanks for adding the high_speed args (and for the suggestion @mhasself!)

I know we're pressed for time. I made some small formatting/docstring changes to address a few things:

  • Added the method signature overrides to display default args in the docs pages
  • Removed duplicate description of the arguments in the wiregrid_actuator.rst file -- I left this description where it already existed, but I'm sort of against it there, it's duplicating effort handled by the autodocs, but that's sort of true of the whole section there
  • Add default to high_speed and tweaked some formatting in speedrate.

@BrianJKoopman BrianJKoopman merged commit c78e6f4 into main Nov 27, 2023
7 checks passed
@BrianJKoopman BrianJKoopman deleted the modify_for_site_wiregrid_actuator branch November 27, 2023 22:09
hnakata-JP pushed a commit that referenced this pull request Apr 12, 2024
…regrid_actuator` (#574)

* update wiregrid_actuator.rst

* add speedrate parameter in insert/eject() in wiregrid_actuator

* add high_speed (bool) parameters to insert/eject

* Add method signature overrides and format docstrings

---------

Co-authored-by: d1ssk <[email protected]>
Co-authored-by: Brian Koopman <[email protected]>
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.

4 participants