-
-
Notifications
You must be signed in to change notification settings - Fork 317
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
Provide suggestions for unknown kwargs passed to blocks #4392
Merged
Merged
Changes from 10 commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
1f6c51a
Attempt
DanielVandH 0fcff4a
Add tests
DanielVandH e2b7e0d
pr
DanielVandH 7a0ae08
Update CHANGELOG.md
DanielVandH aab7bfe
duplicate test
DanielVandH d630e9a
Some other issues
DanielVandH 434d46f
Allow non-attribute kwargs to be passed
DanielVandH 8c99618
Fix LScene and PolarAxis
DanielVandH e735643
haskey is bad
DanielVandH fd76341
Merge branch 'master' into kwarghandling
DanielVandH 5d0f436
Merge branch 'master' into kwarghandling
ffreyer 31bcdfb
replace underscore functions
ffreyer d2e972f
Merge branch 'master' into kwarghandling
SimonDanisch File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I quite dislike
_funcname
and I like__func_name
even less :DIt seems like all of the
__
functions could be easily replaced as well by justx isa Plot
orattribute_names
?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wasn't sure about
isa
since I don't know what else there is besidesx isa Plot
andx isa Block
. I could dox isa Plot
though.The
__valid_attributes
is because I didn't know if it made sense to just defineattribute_names(::Type{<:Block})
. Does it? It could replace__valid_atributes(::Type{<:Block})
belowThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
attribute_names(::Type{<:Block})
sounds good to me, if @jkrumbiegel doesn't see a problem with it ;)For the
__obj_name
, isn't that juststring(block_or_plot_type)
? I wouldn't mind it being a bit more verbose in favor of it being more correct and not introducing a new function for it.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tried string initially but for some plot types like Triplot it shows all the parameters and takes up so much space. Is there a better way?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Something like this?
I'd just do it like this, but I'd also be happy to have a function for this, even as an interface without any
_
;)There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think I knew about
plotsym
. I'll look into all of this soon, thanks.