Skip to content

Generalise data loading#50

Open
lang-m wants to merge 26 commits into
masterfrom
restart-support
Open

Generalise data loading#50
lang-m wants to merge 26 commits into
masterfrom
restart-support

Conversation

@lang-m

@lang-m lang-m commented Jul 13, 2023

Copy link
Copy Markdown
Member
  • reorganise parts of the code
  • handle drives with duplicated data from restarting OOMMF

@lang-m lang-m force-pushed the restart-support branch from 86bc155 to 4767a40 Compare June 9, 2026 07:51
@lang-m lang-m requested a review from samjrholt June 10, 2026 11:14
Comment thread ubermagtable/table.py
>>> table1 = ut.Table.fromfile(odtfile1, x='t')
>>> table2 = ut.Table.fromfile(odtfile2, x='t')
>>> table1 = ut.sample_data()
>>> table2 = ut.sample_data()

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Is it worth having two different sets of data for this?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

I think the simplicity of just one sample dataset in the package outweighs the benefits of having two different tables to concatenate.

Comment thread ubermagtable/tests/test_table.py Outdated
table = table_llg_factory(table_kwargs={"x": "t"})
fft_table = table.rfft()
ifft_table = fft_table.irfft()
ifft_table.x = None # TODO ASK SAM WHY THIS IS SET TO NONE

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Not sure! I think it was a work around because we could not have any arbitrary column as x?

Comment thread ubermagtable/table.py
2 3.000000e-09 0 0 1
"""
data = pd.DataFrame(
{

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I like how simple the data is

Comment thread ubermagtable/table.py Outdated
lang-m and others added 3 commits June 12, 2026 08:31
Co-authored-by: Sam Holt <48217392+samjrholt@users.noreply.github.com>
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