-
Notifications
You must be signed in to change notification settings - Fork 20
Description
Hello,
I am configuring a PyOMA2 SingleSetup instance for rotating machinery analysis. My primary goal is to define geometry and sensor directions, which is crucial for accurately using combined 2D mode shapes (
I am encountering recurring validation errors when calling X_dir.def_geo1(...) on a SingleSetup instance, suggesting a conflict in expected input types within the internal check_on_geo1 function.
Context
- Instance:
X_dir = SingleSetup(data_time_x, fs = fs) - Objective: Define sensor directions for accurate mode shape comparison (MAC).
- Setup Logic: To bypass the "Multi-setup" error, I manually set the reference indices (required for SingleSetup):
# N_sensors = 7 X_dir.ref_ind = np.array([np.arange(N_sensors)])
Validation Issue Summary
The system demands conflicting types for the mandatory arguments. For example:
sens_coordvalidation requires the DataFrame to be indexed by sensor names (ValueErrorfixed by indexing).sens_namesaslist[str]raisesAttributeError: 'list' object has no attribute 'empty', suggesting aDataFrameis needed internally.sens_diroften causesAttributeErrorwhen converted fromDataFrametonumpy.ndarrayinternally (e.g., trying to call.emptyon the resulting array).
Request
What is the exact, successful data format (e.g., List of Strings, NumPy Array, or Pandas DataFrame with indexed names) required for all three mandatory arguments (sens_names, sens_coord, and sens_dir) when using def_geo1 on a SingleSetup instance?