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

Aggregate functions should work on lists #13774

Open
2 tasks done
krushia opened this issue May 2, 2024 · 1 comment
Open
2 tasks done

Aggregate functions should work on lists #13774

krushia opened this issue May 2, 2024 · 1 comment
Labels
Core Issue or PR touches core sections (App, Gui, Base) of FreeCAD Expressions Feature FR for improvements or new features

Comments

@krushia
Copy link

krushia commented May 2, 2024

Is there an existing issue for this?

  • I have searched the existing issues

Problem description

Aggregate functions appear to only work on spreadsheet ranges and singularly typed items. The problem is easily shown by putting average(list(1; 2; 3)) in an expression. This cripples the ability to migrate array/lattice parametric wizardry from a spreadsheet to a Property list.

Full version info

[code]
OS: KDE Flatpak runtime (KDE/plasma)
Word size of FreeCAD: 64-bit
Version: 0.21.2.33771 (Git)
Build type: Release
Branch: (HEAD detached at b9bfa5c)
Hash: b9bfa5c5507506e4515816414cd27f4851d00489
Python 3.11.7, Qt 5.15.10, Coin 4.0.0, Vtk 8.2.0, OCC 7.6.3
Locale: English/United States (en_US)
Installed mods: 
  * parts_library
  * DynamicData 2.62.0
  * Assembly4 0.50.12
  * Help 1.0.3
  * slic3r-tools
  * ToolbarStyle (Disabled)
  * toSketch 1.0.1
  * sheetmetal 0.4.11
  * ShortCuts (Disabled)
  * fasteners 0.5.17
  * SearchBar 1.0.2
  * Nodes 0.1.36
  * workfeature
  * offline-documentation 1.0.0-alpha
  * Freecad-Built-in-themes-beta 1.2.2
  * Manipulator 1.5.7
  * Assembly3 0.12.2
  * lattice2 1.0.0
  * freecad.gears 1.2.0
  * Launcher
  * CommandPanel
  * CubeMenu
[/code]

Subproject(s) affected?

Expressions

Anything else?

aggregate-functions-not-working-on-lists.zip

Code of Conduct

  • I agree to follow this project's Code of Conduct
@maxwxyz
Copy link
Collaborator

maxwxyz commented May 2, 2024

@pieterhijma maybe also relevant for VarSets.

@maxwxyz maxwxyz added Core Issue or PR touches core sections (App, Gui, Base) of FreeCAD Feature FR for improvements or new features Expressions labels May 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Core Issue or PR touches core sections (App, Gui, Base) of FreeCAD Expressions Feature FR for improvements or new features
Projects
None yet
Development

No branches or pull requests

2 participants