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

Cast dimension.(upper,lower,num_cells) to appropriate type. #504

Merged
merged 1 commit into from
Feb 10, 2015

Conversation

ketch
Copy link
Member

@ketch ketch commented Feb 9, 2015

Currently, doing

x = pyclaw.Dimension(-1, 1, 10,name='x')

throws an exception because the first argument is not a float. This PR just tries to cast the arguments to the appropriate type, so that commands like that above work. An exception will still be thrown if the arguments cannot be cast to the appropriate types.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.01%) to 26.57% when pulling 6fb525a on ketch:dim_prop_types into 995dd40 on clawpack:master.

@mandli
Copy link
Member

mandli commented Feb 9, 2015

Looks good to me, once we deprecate the old way of instantiating a Dimension we can get rid of a lot of this.

ketch added a commit that referenced this pull request Feb 10, 2015
Cast dimension.(upper,lower,num_cells) to appropriate type.
@ketch ketch merged commit d50af97 into clawpack:master Feb 10, 2015
@ketch ketch deleted the dim_prop_types branch February 10, 2015 13:51
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.

None yet

3 participants