Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hom DSL #101

Open
wants to merge 22 commits into
base: master
Choose a base branch
from
Open

Hom DSL #101

wants to merge 22 commits into from

Conversation

neonWhiteout
Copy link
Collaborator

(@hom WeightModel l_type begin
  :stocks
  NormalWeight => pop
  OverWeight => pop
  Obese => pop

  :parameters
  μ => μ
  ~δ => δ
  rage => rage
  _ => rFstOrder

  :dynamic_variables
  v_NewBorn => v_birth
  ~Becoming => v_fstOrder
  ~Death => v_death
  _ => v_aging

  :flows
  f_NewBorn => f_birth
  ~Becoming => f_fstOrder
  ~Death => f_death
  ~id => f_aging
  _ => f_death



end) == typed_WeightModel

Note, this creates a homomorphism from WeightModel to (l_type with all attributes mapped to nothing).

@neonWhiteout
Copy link
Collaborator Author

It's going to say there's a lot of changes because I merged #93 into it

@neonWhiteout
Copy link
Collaborator Author

Thing is, this is literally just half of a @stratify call. Need to figure out what I can pull out from both and use.

@neonWhiteout neonWhiteout marked this pull request as ready for review December 6, 2023 00:30
@neonWhiteout
Copy link
Collaborator Author

PLEASE NOTE THIS HAS #93 MERGED INTO IT!!! This will cause a lot of reformatting to occur throughout the project, to shorten lines and get tabs to be 2 spaces rather than 4.

Copy link

codecov bot commented Dec 6, 2023

Codecov Report

Attention: 284 lines in your changes are missing coverage. Please review.

Comparison is base (e82fa18) 50.03% compared to head (b224859) 52.03%.
Report is 1 commits behind head on master.

Files Patch % Lines
src/StockFlow.jl 13.75% 138 Missing ⚠️
src/SystemStructure.jl 58.97% 64 Missing ⚠️
src/CausalLoop.jl 0.00% 40 Missing ⚠️
src/Syntax.jl 93.37% 19 Missing ⚠️
src/syntax/Stratification.jl 89.25% 13 Missing ⚠️
src/syntax/Homomorphism.jl 92.30% 4 Missing ⚠️
src/PremadeModels.jl 25.00% 3 Missing ⚠️
src/syntax/Composition.jl 95.08% 3 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #101      +/-   ##
==========================================
+ Coverage   50.03%   52.03%   +2.00%     
==========================================
  Files           9       10       +1     
  Lines        1525     1597      +72     
==========================================
+ Hits          763      831      +68     
- Misses        762      766       +4     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@neonWhiteout
Copy link
Collaborator Author

@Xiaoyan-Li

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.

1 participant