Group Abstract Group Abstract

Message Boards Message Boards

0
|
3.4K Views
|
3 Replies
|
0 Total Likes
View groups...
Share
Share this post:

Remove $number in the output of NonlinearModelfit

Posted 4 years ago
POSTED BY: Geoff Landis
3 Replies
Posted 4 years ago

Geoff:

I found myself debugging this issue myself today. The issue turned out to be a misplaced semi-colon.

In my Module[], I was returning an association. It looked something like:

Module[
  { 
   private = 0
   },
  (* some interesting code that could change the world some day *)

  <| 
   "a" -> 1, 
   "b" -> 2,
   "c" -> private;
   |>

  ];

So, the lesson from here is to make sure you don't have semi-colons in the wrong place.

I hope that helps.

POSTED BY: Mike Besso
Posted 4 years ago
POSTED BY: Mike Besso
Posted 4 years ago

Hi Geoff,

The code to reproduce is not provided. So, one possibility is that Module scoped symbols are being exposed. e.g.

Module[{x}, x]
(* x$2606189 *)

Depending on the specifics of your code, you might want to change the code to avoid that, or use Block instead. Hard to advise without more details.

POSTED BY: Rohit Namjoshi
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard