Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
D
dorie
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 31
    • Issues 31
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge Requests 9
    • Merge Requests 9
  • Operations
    • Operations
    • Incidents
    • Environments
  • Analytics
    • Analytics
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
  • dorie
  • dorie
  • Issues
  • #35

Closed
Open
Opened Jan 25, 2018 by Lukas Riedel@lriedelOwner

pfg throws meaningless exception if 'csv' converter is run in 3D

The CSV converter of the parameter field generator dorie pfg does not support creating 3D parameter fields. When trying to run it with a .csv file for a homogeneous (2D) case, it throws the following error:

Parameter field generator failed with (0) warning(s) and (1) error(s)
Traceback (most recent call last):
  File "/Users/mathisfels/Desktop/dunewithdorie/dune-common/build-cmake/dune-env/bin/pf_from_file.py", line 61, in <module>
    CSVConverter(args["param"])
  File "/Users/mathisfels/Desktop/dunewithdorie/dune-common/build-cmake/dune-env/lib/python3.6/site-packages/dorie/parfield/converter/csv.py", line 24, in __init__
    super(CSVConverter,self).__init__(param)
  File "/Users/mathisfels/Desktop/dunewithdorie/dune-common/build-cmake/dune-env/lib/python3.6/site-packages/dorie/parfield/converter/base.py", line 48, in __init__
    self.write(out_path,overwrite)
  File "/Users/mathisfels/Desktop/dunewithdorie/dune-common/build-cmake/dune-env/lib/python3.6/site-packages/dorie/parfield/converter/base.py", line 64, in write
    raise ValueError("Data shape ({}) does not match field dimensions ({})".format(", ".join(v.shape), self.dim))
TypeError: sequence item 0: expected str instance, int found
Error while running DORiE

There should be a check if dimensions = 2 is given in the config file when starting the CSV converter.

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
v1.0 Release
Milestone
v1.0 Release
Assign milestone
Time tracking
None
Due date
None
Reference: dorie/dorie#35