Skip to content

Conversation

@prasadtalasila
Copy link
Contributor

No description provided.

Clustering and mode tracking is added with example code for both and a shared module for both. Other small changes have been made.

Splitting function blocks into smaller functions. Other small changes.

Bug fix and small change to plot_cluster

Fixed an error in create_cluster, that resulted in doublicate model orders for a cluster. Allowed for scatter point size to be adjusted.

Removed debug info from some files, added missing type info for function arguments and returns, updated to YaFEM 1.0.0, changed some function descriptions, added timestamp to clustering data

Model update module and other changes

Add model update module. Added reconnect function for MQTT client. Added timestamp outputs to some functions. Added models folder to store YAFEM models and model parameters. Added function to publish clustering results. Small change to the mode tracking algorithm. Added function to check mode shapes. Moved convert_list function to util.py, since it is used in multiple other functions. Added function to view the spectral density. Changes to readability.

Added example functions

Changed the typing of some arguments in some functions

dict to Dict, list to List, tuple to Tuple
else:
print(mode_shape)
print('Press enter to continue')
x = input()
myModel = model(myNodes, myElements,model_pars)

# simulation
mySimulation = simulation(myModel)
try:
message = json.dumps(payload)

reconnect_succes = reconnect_client(publish_client)
print(f"Skipping model updating due to error: {e}")
message = json.dumps(payload)

reconnect_succes = reconnect_client(publish_client)
plt.show(block=True)
cluster_results, sysid_output, dictionary_of_clusters, meadian_frequencies, timestamp = MC.subscribe_and_cluster(config_path,PARAMS)
if sysid_output is not None:
fig_ax = plot_clusters(dictionary_of_clusters, sysid_output, PARAMS, fig_ax = None)
print("Model update failed.")


parameters, omegaMU, model_parameters = model_update.estimate_updated_model(dictionary_clusters,MODEL_PARAMETERS,PARAMS)
print("Model update failed.")


parameters, omegaMU, model_parameters = model_update.estimate_updated_model(dictionary_clusters,MODEL_PARAMETERS,PARAMS)
print("Model update failed.")


parameters, omegaMU, model_parameters = model_update.estimate_updated_model(dictionary_clusters,MODEL_PARAMETERS,PARAMS)
@prasadtalasila
Copy link
Contributor Author

rebase done in PR #35

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants