Skip to content

Create repo for nanite models in AFM-Analysis #30

@PinkShnack

Description

@PinkShnack

As discussed in a previous PR, it would be good to have the external Hertz KVM model in a repository for nanite models.

Todo

  • Create a repo, similar to https://github.com/AFM-analysis/nanite_model_sneddon_spher I guess, perhaps we could call it "nanite_model_extensions" or "nanite_external_models"?
  • add the up to date models. For example, the KVM model should have two versions, one (original from paper) for numpy v1 and one for numpy v2. Reason:
    • fit_stop = int(np.argwhere(force < (max_force * fraction_force))[0]) fails for numpy v2
    • # numpy 1 and 2 compatible code
      _mask = force < (max_force * fraction_force)
      if not np.any(_mask):
          raise ValueError("No force values below threshold")
      fit_stop = int(np.argmax(_mask))
  • Have a section in the nanite docs website referring to this repo
  • Show how to load this extension in nanite.
  • Should nanite have this as a dependency?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions