8000 Icf cpheapm 108 new mechanistic module by tfeiler-icf · Pull Request #6 · USEPA/hawc · GitHub
[go: up one dir, main page]

Skip to content

Icf cpheapm 108 new mechanistic module - #6

Draft
tfeiler-icf wants to merge 30 commits into
mainfrom
ICF-CPHEAPM_108-new_mechanistic_module
Draft

tfeiler-icf wants to merge 30 commits into
mainfrom
ICF-CPHEAPM_108-new_mechanistic_module

Conversation

@tfeiler-icf
Copy link
Copy Markdown
Collaborator

Just a draft so EPA can take a look, pull down to run to eval, etc.

enables CRUD for mechanistic experiments via the HAWC UI

(note - this is a manual reconstruction of commit
b55ccb3e0c1be0dd896b899bd5904d766f6101d7 from the old
shapiromatron repo; couldn't use standard Git commands
to bring it over easily as there was sha divergence)
struggle getting this working with htmx so there's a slight workaround
at the moment. But it's functional.
…experiment

(note - this is a manual reconstruction of commit
8dd8cdba9ac01383cd189c1b2102710f69c2eaaf from the old
shapiromatron repo; couldn't use standard Git commands
to bring it over easily as there was sha divergence)
(note - this is a manual reconstruction of commit
a097640ab995f5723b26aed1d5ef84cfb3427223 from the old
shapiromatron repo; couldn't use standard Git commands
to bring it over easily as there was sha divergence)
(note - this is a manual reconstruction of commit
f14ef197242c7b9267e12d4996e7851d4b9662d4 from the old
shapiromatron repo; couldn't use standard Git commands
to bring it over easily as there was sha divergence)
- get EHV working in mechanistic module
- also adds support for contingent fields (e.g. "only show field X if field Y has value Z") in the JsonListWidget
includes a mdification to the JSONListWidget that cropped up
when moving to the base Experiment object.
- add link to animalv1/invivo experiment (associated with same study) to mechanistic experiment
- add "name" field to Method
- add fk to Method to DataAnalysis
- add fk to Method to MechanisticEndpoint
mechanistic migration was depending on a shapiromatron-only migration;
redoing to point at latest usepa one.

This is first commit for mechanistic that wasn't brought over
automatically/manually from the shapiromatron repo.
Comment thread hawc/apps/common/forms.py

return json.dumps(json_safe_schema)

def render(self, name, value, attrs=None, renderer=None):
Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is kinda clunky / quick-and-dirty...if we end up using/needing it (and depending on how model evolves, we might not) would probably be nice to put the html bits into a template instead of generating them inline.

@shanethacker
shanethacker requested a review from caseyhans August 26, 2026 15:04

This branch has not been deployed

No deployments
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

0