Skip to content

Polish up work on #108 on the irispy/time_dependent_response branch#112

Merged
DanRyanIrish merged 5 commits intosunpy:time_dependent_responsefrom
kakirastern:polish-up-108
Aug 1, 2019
Merged

Polish up work on #108 on the irispy/time_dependent_response branch#112
DanRyanIrish merged 5 commits intosunpy:time_dependent_responsefrom
kakirastern:polish-up-108

Conversation

@kakirastern
Copy link
Copy Markdown
Contributor

@kakirastern kakirastern commented Jul 31, 2019

Goals

  • Default to version 4 if neither response version nor file has been explicitly passed to the get_iris_response method.
  • Convert the time_obs variable from a numpy.array to an astropy.time.Time object.

@DanRyanIrish
Copy link
Copy Markdown
Member

Hi @krisastern. I would suggest that Goal 3 be it's own PR. That way this one can be merged more quickly and is easier to review.

@kakirastern
Copy link
Copy Markdown
Contributor Author

Sure @DanRyanIrish
I will make the changes soon.

@kakirastern
Copy link
Copy Markdown
Contributor Author

Hi @DanRyanIrish! Changes made, and the PR is ready for a review.

Copy link
Copy Markdown
Member

@DanRyanIrish DanRyanIrish left a comment

Choose a reason for hiding this comment

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

Apart from the length of that one line, this looks good!

time_obs: a `numpy.array` of floats, as a kwarg, valid for version > 2
Observation times of the datapoints. Must be in the format of the output of time_obs = parse_time('2013-09-03', format='utime'), which yields 1094169600.0 seconds. The argument time_obs is ignored for versions 1 and 2.
time_obs: an `astropy.time.Time` object, as a kwarg, valid for version > 2
Observation times of the datapoints. Must be in the format of , e.g., time_obs = parse_time('2013-09-03', format='utime'), which yields 1094169600.0 seconds in value. The argument time_obs is ignored for versions 1 and 2.
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

PEP 8 compliance: Can you break this into multiple lines no line hits the 100 character mark?

@DanRyanIrish
Copy link
Copy Markdown
Member

Great. Once it passes the CI tests, I'll approve and merge :)

@DanRyanIrish DanRyanIrish merged commit bbd668e into sunpy:time_dependent_response Aug 1, 2019
kakirastern pushed a commit to kakirastern/sunraster that referenced this pull request Aug 1, 2019
@kakirastern kakirastern deleted the polish-up-108 branch April 25, 2020 13:58
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