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

can't delete substitutions within model #1232

Closed
mjburton11 opened this issue Nov 10, 2017 · 3 comments
Closed

can't delete substitutions within model #1232

mjburton11 opened this issue Nov 10, 2017 · 3 comments

Comments

@mjburton11
Copy link

I'm trying to the following in solar

  class Aircraft(Model):
      "vehicle"
      fuseModel = None
      def setup(self, sp=False):
  
          self.wing = WingGP()
          del self.wing.substitutions["\\tau"]

but it won't delete the substitution. If I delete it after creating mission, it will delete. Is this behavior intended?

@bqpd bqpd added this to the Next release milestone Nov 12, 2017
@bqpd
Copy link
Contributor

bqpd commented Nov 12, 2017

Oh dang I bet this is related to #1175...this substitution is a value?

@bqpd
Copy link
Contributor

bqpd commented Nov 12, 2017

Yeah, it's something that occurs in performance models, which pull the substitutions back out of the value; then when the mission combines them, the \\tau substitution has magically reappeared

@bqpd
Copy link
Contributor

bqpd commented Nov 12, 2017

Hmm you know what...both this and #1175 would be fixed if values were removed from a variable after being used...that could be kinda odd though

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

No branches or pull requests

2 participants