Skip to content

First attempt at adding 2D psd plotting function#23

Open
KathrynJones1 wants to merge 10 commits intoICSM:mainfrom
KathrynJones1:main
Open

First attempt at adding 2D psd plotting function#23
KathrynJones1 wants to merge 10 commits intoICSM:mainfrom
KathrynJones1:main

Conversation

@KathrynJones1
Copy link
Copy Markdown
Contributor

I guessed at a lot of the shapes, since we're not sure what they will be yet. It's also hard to check everything is compatible before running it.
Also need to investigate which psd you need to subtract to avoid interference (we're not sure about 2D yet).

Comment thread pgmuvi/lightcurve.py Outdated
Comment thread pgmuvi/lightcurve.py Outdated
Comment thread pgmuvi/lightcurve.py Outdated
Comment thread pgmuvi/lightcurve.py Outdated
Comment thread pgmuvi/lightcurve.py Outdated
Comment thread pgmuvi/lightcurve.py Outdated
Comment thread pgmuvi/lightcurve.py
self.likelihood,
num_mixtures=num_mixtures) #Add missing arguments
num_mixtures=num_mixtures) # Add missing arguments
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Suggested change
num_mixtures=num_mixtures) # Add missing arguments
num_mixtures=num_mixtures) #Add missing arguments

Comment thread pgmuvi/lightcurve.py

# Initialize plot
fig, ax = plt.subplots(1, 1, figsize=(8, 6))
# Initialise plot
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Suggested change
# Initialise plot
# Initialise plot

Comment thread pgmuvi/lightcurve.py
# Initialize plot
fig, ax = plt.subplots(1, 1, figsize=(8, 6))
# Initialise plot
fig, ax = plt.subplots(1, 1, figsize=(8, 6))
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Suggested change
fig, ax = plt.subplots(1, 1, figsize=(8, 6))
fig, ax = plt.subplots(1, 1, figsize=(8, 6))

Comment thread pgmuvi/lightcurve.py
else:
return fig, ax

if means.ndim == 2: # 2D case
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

I'm not sure if the indentation here is correct - it looks like it might have once level of indentation too few, but I'm getting confused by all my previous comments...

KathrynJones1 and others added 7 commits October 21, 2022 12:00
Co-authored-by: Peter Scicluna <pscicluna@users.noreply.github.com>
Co-authored-by: Peter Scicluna <pscicluna@users.noreply.github.com>
Co-authored-by: Peter Scicluna <pscicluna@users.noreply.github.com>
Co-authored-by: Peter Scicluna <pscicluna@users.noreply.github.com>
Co-authored-by: Peter Scicluna <pscicluna@users.noreply.github.com>
Co-authored-by: Peter Scicluna <pscicluna@users.noreply.github.com>
Co-authored-by: Peter Scicluna <pscicluna@users.noreply.github.com>
@pscicluna
Copy link
Copy Markdown
Collaborator

@KathrynJones1 are you up for resuming work on pgmuvi and getting this finished? It's okay if not, I can push the last few changes through and clean it up later.

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