Kichwa Coders are proud to be a gold sponsor of Pydev. For us this is a continuation of the support we pledged last year. This year has also seen Kichwa Coders join the Eclipse Science Working Group and become part of the global collaboration working towards reusable open source software. Python has always played a major part in scientific software and will continue to do so going forward. PyDev is the best Python development environment out there, we love it and our clients and their customers love it. We’re excited about the plans ahead, particularly the Python profiler. Here’s where you can learn more about the new features planned and join us in supporting PyDev.
Dawn Developer Workshop, June 2014
This year, the 2-day DAWN developer workshop had an added dimension as the first day was an Eclipse Science day. It was well-timed and coincided with the formal creation of the Eclipse science working group which is growing a community around Eclipse and scientific software development. Diamond Light Source played host and the day included a fascinating tour of the guts of the synchrotron (once we made sure it really was turned off). I won’t be able to do it justice with words but here’s some great information on how it works and I’d highly recommend a visit to see it for yourself.
In the spirit of fostering collaboration, the science day featured sessions focussed around idea and technology exchange. This included demos of science tools all underpinned by the Eclipse framework: Continue reading “Dawn Developer Workshop, June 2014”
Using Eclipse Common Navigator Framework for the NeXus Navigator
The Eclipse common navigator framework (CNF) is used as the basis for the NeXus Navigator within the DAWN Science platform. The nexus navigator provides a focussed view on nexus files, but in doing so removes the directory and project structure. However, more typically users need to focus on their nexus files within the context of their directory structure (often very deliberately set up and related to the experiment).
|Pre-existing navigator with flat directory structure flat|
So the requirement is to show the existing directory (and project) structure but provide a filter such that only Nexus files are shown.
Based on past experience, using expressions in Eclipse plug-in extension points can be tricky – if they don’t work, it’s not straightforward to debug why. Usually referencing the documentation coupled with a working example is a good starting point. Here’s the filter expression for this case (which came with a certain amount of trial and error):
<filterExpression> <and> <not> <adapt type="org.eclipse.core.resources.IFile"> <test property="org.eclipse.core.resources.extension" value="nxs"> </test> </adapt> </not> <adapt type="org.eclipse.core.resources.IFile"> </adapt> </and> </filterExpression>
In particular, note it is best to use the tag rather than to ensure the filter works not just for files but anything masquerading (or adapting) to the IFile interface.
There is no Java code provided that requires unit tests. Using the extension point takes advantage of the pre-existing testing and repeated use by the open source community. The expression can be verified and so tests for the navigator are naturally rolled into tests for upcoming features intended for the navigator.
- Common navigator framework – http://wiki.eclipse.org/index.php/Common_Navigator_Framework (the blog resources are particularly useful)
- Eclipse expressions reference – http://wiki.eclipse.org/Command_Core_Expressions
P2 Update Site for the DAWN project – the final piece of the puzzle
|Before: Sites list is empty|
|After: Sites list automatically populated with DAWN update site|
Kichwa Coders is now a silver sponsor for the PyDev project.
We’ve been using PyDev since 2008, and it is truly the best Python development environment out there. With such superb features like its context-sensitive code completion, rich debugging and testing integration it is a tool that has helped us focus on the real programming problems at hand. The development effort, led by Fabio Zadrozny, is highly responsive and always forward-looking.
We are dedicated to supporting such excellence in open-source projects for our and the benefit of the whole developer community.
We look forward to the continued development of PyDev, backed by the Python community. We are also excited by the new features and the LiClipse project.
Join us to support this worthwhile cause at indiegogo.
Read more about PyDev and Fabio’s blog where he explains more about the history and motivation for crowdfunding.