Replies: 3 comments 7 replies
-
Did you embed the FMU_files with the FMU?
|
Beta Was this translation helpful? Give feedback.
5 replies
-
You might also want to look at the CSV builder that ships with pythonfmu. https://github.com/NTNU-IHB/PythonFMU/blob/master/pythonfmu/csvbuilder.py |
Beta Was this translation helpful? Give feedback.
2 replies
-
So, I think the correct way to read files is to append the value of class PythonSlaveReadFile(Fmi2Slave):
def __init__(self, **kwargs):
super().__init__(**kwargs)
with (open(f'{self.resources}/hello.txt', 'r')) as file:
data = file.read() |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I am using windows with anaconda.
I tried to import pandas and then put a csv file into a subfolder called FMU_files.
It does not work like this, so is there an example I can build on ? :)
Beta Was this translation helpful? Give feedback.
All reactions