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

2d shape #54

Merged
merged 16 commits into from
Mar 20, 2023
Merged

2d shape #54

merged 16 commits into from
Mar 20, 2023

Conversation

Sosnowsky
Copy link
Member

#53

Copy link
Member

@gregordecristoforo gregordecristoforo left a comment

Choose a reason for hiding this comment

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

Since the code-coverage doesn't seem to work, have you made sure no new tests are needed for your new changes?

blobmodel/pulse_shape.py Show resolved Hide resolved
blobmodel/pulse_shape.py Show resolved Hide resolved
blobmodel/stochasticality.py Show resolved Hide resolved
blobmodel/stochasticality.py Outdated Show resolved Hide resolved
blobmodel/model.py Show resolved Hide resolved
blobmodel/model.py Show resolved Hide resolved
),
)
return start, stop
return 0, self._geometry.t.size
Copy link
Member

Choose a reason for hiding this comment

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

this is equivalent to the blob.v_x==0 case. We could reduce a level of indentation by writing:
if blob_v_x == 0 or not speed_up:
return 0, self._geometry.t_size
speed_up code
what do you think?

Copy link
Member Author

Choose a reason for hiding this comment

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

Indeed, good one!

f"{self.__class__.__name__}.blob_shape not implemented"
)
theta_x = x_diffs / self.width_prop
return self.blob_shape.get_pulse_shape_prop(theta_x, ...)
Copy link
Member

Choose a reason for hiding this comment

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

... serves as a placeholder for kwargs right?

Copy link
Member Author

Choose a reason for hiding this comment

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

yep

@gregordecristoforo
Copy link
Member

Ok, once the test pass I think it's ready to be merged

@Sosnowsky Sosnowsky merged commit 09c0e8d into main Mar 20, 2023
@gregordecristoforo gregordecristoforo deleted the 2d_shape branch March 20, 2023 11:05
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