Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
MRIBuilder.jl
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Michiel Cottaar
MRIBuilder.jl
Commits
8a875db7
Unverified
Commit
8a875db7
authored
6 months ago
by
Michiel Cottaar
Browse files
Options
Downloads
Patches
Plain Diff
use new propertynames interface
parent
b49e5d01
No related branches found
No related tags found
1 merge request
!7
Add variables as properties
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/post_hoc.jl
+1
-1
1 addition, 1 deletion
src/post_hoc.jl
with
1 addition
and
1 deletion
src/post_hoc.jl
+
1
−
1
View file @
8a875db7
...
@@ -110,7 +110,7 @@ end
...
@@ -110,7 +110,7 @@ end
function
adjust_helper
(
block
::
AbstractBlock
,
used_names
::
UsedNamesType
;
kwargs
...
)
function
adjust_helper
(
block
::
AbstractBlock
,
used_names
::
UsedNamesType
;
kwargs
...
)
params
=
[]
params
=
[]
for
prop_name
in
propertynames
(
block
)
for
prop_name
in
fieldnames
(
typeof
(
block
)
)
push!
(
params
,
adjust_helper
(
getproperty
(
block
,
prop_name
),
used_names
;
kwargs
...
))
push!
(
params
,
adjust_helper
(
getproperty
(
block
,
prop_name
),
used_names
;
kwargs
...
))
end
end
new_block
=
typeof
(
block
)(
params
...
)
new_block
=
typeof
(
block
)(
params
...
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment