Group Abstract Group Abstract

Message Boards Message Boards

0
|
5.5K Views
|
4 Replies
|
0 Total Likes
View groups...
Share
Share this post:

Combine data analyzed separately into one notebook?

Posted 5 years ago
POSTED BY: Diego Floor
4 Replies
Posted 5 years ago

Hi Diego,

Maybe in each notebook save an Association of the following form to the corresponding .mx file. Then load them all into the analysis notebook?

Put[<|"Mass" -> 123, "Volume" -> 456, "Results" -> {x, y, z}|>, 
 NotebookFileName[] <> ".mx"]
POSTED BY: Rohit Namjoshi

There are a few ways to achieve your goal. But the obvious one is to structure your notebook as you describe which is to read the data, organise then analyse them.

I would think hard before resorting to mx files, but they may be required if you have memory issues.

Don't forget that you can organise your notebooks into sections and subsections, and that you can use loops and relative paths to access data in files.

As per my attached notebook, setup some global variables, read a bunch of data into arrays, plot them and write the data so that they can be analysed further.

It is difficult to be more specific without and idea of data sizes and what you want to do with them

Attachments:
POSTED BY: David Annetts
Posted 5 years ago

There are a few ways to achieve your goal. But the obvious one is to structure your notebook as you describe which is to read the data, organise then analyse them.

Yes, I suspect as much. I ask because often someone comes with an obscure command I never heard of like "oh you can just use the SolveYourSpecificProblem function"

Don't forget that you can organise your notebooks into sections and subsections, and that you can use loops and relative paths to access data in files.

Wait, I thought sections and subsections were there for aesthetic reasons. Currently what I do is set the working directory at the top of the notebook to the folder where the specific data I'm interested is.

POSTED BY: Diego Floor

Sections etc,. help you organise your thoughts. I typically use them to hide details in steps in an analysis so that when I execute the entire notebook, I can reproduce an output such as a plot. Such an organisation assists debugging and self-documents the workflow.

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