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

Work to refactor amuse.rfi #1078

Open
wants to merge 13 commits into
base: main
Choose a base branch
from
Open

Work to refactor amuse.rfi #1078

wants to merge 13 commits into from

Conversation

rieder
Copy link
Member

@rieder rieder commented Oct 9, 2024

No description provided.

@rieder rieder marked this pull request as ready for review October 30, 2024 14:58
@rieder rieder requested a review from a team as a code owner October 30, 2024 14:58
Copy link
Collaborator

@LourensVeen LourensVeen left a comment

Choose a reason for hiding this comment

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

Looks good overall but I've left some questions and a proposal for one more fix.

@@ -503,9 +503,9 @@ def read_fortran_block_float_vectors(self, file, size=3):
result = self.read_fortran_block_floats(file)
return result.reshape(len(result) // size, size)

def write_fortran_block(self, file, input):
Copy link
Collaborator

Choose a reason for hiding this comment

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

What does this code do? Is there anything affected by this?

@@ -1,236 +1,297 @@
import numpy
import os.path
from amuse.community import *
Copy link
Collaborator

Choose a reason for hiding this comment

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

This is not a syntax update to amuse.rfi. Was that intended?

@@ -44,9 +44,11 @@
from . import async_request
Copy link
Collaborator

Choose a reason for hiding this comment

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

This file is such a disaster. But at least it's now a nicely formatted disaster. Great!

def cleanup_module(mod):
#print "CLEANUP!!"
Copy link
Collaborator

Choose a reason for hiding this comment

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

Maybe this Python 2 comment could just go?

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