Skip to content

readCAPYTAINE not working for current Capytaine .nc output files [BUG] #875

@jtgrasb

Description

@jtgrasb

Note: italicized text below is include as an example and should be updated before submission. If you feel any section is not applicable to your request, please replace with 'N/A' rather than delete a section.

Describe the bug
When Capytaine is run, it outputs a .nc file with the desired hydrodynamic data. readCAPYTAINE is run to read in the hydro data, but gives errors due to the name and format of the complex indices. This seems to be an error related to the current formatting of the .nc file. I'm not sure if an update within Capytaine is leading to differences in formatting or if it's MATLAB's ncread script.

WEC-Sim file(s)
readCAPYTAINE.m

To Reproduce
Steps to reproduce the behavior:

  1. Open the anaconda command prompt.
  2. Navigate to the WEC-Sim directory, then to examples->BEMIO->CAPYTAINE, and go into one of the specific example folders (ex: sphere)
  3. Type python sphere.py to run the sphere case.
  4. Within the Capytaine->Sphere folder, open the BEMIO script and change to filename from '.\sphere_full.nc' to '.\sphere.nc', and click run.

Expected behavior
BEMIO should run normally and read in the hydro data from the .nc file.

Screenshots

Workstation Information (this section MUST BE completed):

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions